Instructions to use kaidu88/pulp_fantasy_comics_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kaidu88/pulp_fantasy_comics_lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("kaidu88/pulp_fantasy_comics_lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("kaidu88/pulp_fantasy_comics_lora")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]simpletuner-lora: Pulp-Fantasy Comics in Frank Frazetta style
A LoRA for the Flux-1.dev text-to-image model to enforce a vintage fantasy pulp-comic style with high contrast and simple linearts - a style in reminiscent of the old Frank Frazetta fantasy comics.
The model was trained on 76 manually captioned images in different resolutions - many thanks to SubtleOne who gave me the training data.
Validation settings
- CFG:
3.5 - CFG Rescale:
0.0 - Steps:
30 - Sampler:
Euler - Resolution:
1024x1024
Inference
from diffusers.pipelines.flux.pipeline_flux import FluxPipeline
import safetensors.torch
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, token="hf_[yourhuggingfacetoken]")
weights = safetensors.torch.load_file("frazetta_pulp_comics.safetensors") # download it manually
pipe.load_lora_into_transformer(weights, pipe.transformer)
image=pipe("Illustration by Frank Frazetta: A grand medieval banquet hall illuminated by flickering torchlight, with long wooden tables laden with roasted meats, bread, and wine. Nobles in fine garments and elaborate headpieces feast and converse, while minstrels play lively music in the background. At the head of the hall, a king sits on a grand throne, overseeing the festivities. The hall's stone walls are adorned with tapestries depicting epic battles and legendary heroes, creating an atmosphere of opulence and history.")
image.images[0].save("output.png")
- Downloads last month
- 7
Model tree for kaidu88/pulp_fantasy_comics_lora
Base model
black-forest-labs/FLUX.1-dev