Run this model with HF Jobs
Run strangerzonehf/2Color-Illustration 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/strangerzonehf/2Color-Illustration. 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/strangerzonehf/2Color-Illustration 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 strangerzonehf/2Color-Illustration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use strangerzonehf/2Color-Illustration 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("strangerzonehf/2Color-Illustration") prompt = "2color illustration, A purple and black drawing of a woman laying on a bed. The bed is covered with a green blanket. There is a black lamp hanging from the ceiling above the bed. To the right of the bed is a table with a basket on top of it. There are books and bottles on the table." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files21 unmodified lines22232425262721 unmodified lines<Gallery />## Trigger wordsYou should use `2color illustration` to trigger the image generation.21 unmodified lines222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676821 unmodified lines<Gallery /># Model description for 2Color-IllustrationImage Processing Parameters| Parameter | Value | Parameter | Value ||---------------------------|--------|---------------------------|--------|| LR Scheduler | constant | Noise Offset | 0.03 || Optimizer | AdamW | Multires Noise Discount | 0.1 || Network Dim | 64 | Multires Noise Iterations | 10 || Network Alpha | 32 | Repeat & Steps | 24 & 2770 || Epoch | 20 | Save Every N Epochs | 1 |Labeling: florence2-en(natural language & English)Total Images Used for Training : 22## Best Dimensions & Inference| **Dimensions** | **Aspect Ratio** | **Recommendation** ||-----------------|------------------|---------------------------|| 1280 x 832 | 3:2 | Best || 1024 x 1024 | 1:1 | Default |### Inference Range- **Recommended Inference Steps:** 30–35## Setting Up```pythonimport torchfrom pipelines import DiffusionPipelinebase_model = "black-forest-labs/FLUX.1-dev"pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)lora_repo = "strangerzonehf/2Color-Illustration"trigger_word = "2color illustration"pipe.load_lora_weights(lora_repo)device = torch.device("cuda")pipe.to(device)```## Trigger wordsYou should use `2color illustration` to trigger the image generation.
README.md+41