Run this model with HF Jobs
Run kaidu88/pulp_fantasy_comics_lora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/kaidu88/pulp_fantasy_comics_lora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/kaidu88/pulp_fantasy_comics_lora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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 Settings
- 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
- 31
Model tree for kaidu88/pulp_fantasy_comics_lora
Base model
black-forest-labs/FLUX.1-dev