Run this model with HF Jobs
Run strangerzonehf/Flux-Super-Realism-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/strangerzonehf/Flux-Super-Realism-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/strangerzonehf/Flux-Super-Realism-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 strangerzonehf/Flux-Super-Realism-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use strangerzonehf/Flux-Super-Realism-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("strangerzonehf/Flux-Super-Realism-LoRA") prompt = "Super Realism, Woman in a red jacket, snowy, in the style of hyper-realistic portraiture, caninecore, mountainous vistas, timeless beauty, palewave, iconic, distinctive noses --ar 72:101 --stylize 750 --v 6" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
How much data is needed?
Thank you for your contributions to the open-source community. I also want to train other LoRA models, and I was wondering how much data you used to train the current surreal style?
Thanks for commenting, @Bengioalin
kindly check the model card.
Thank you for your reminder.
BTW, I would like to know what learning rate you used.
For style LoRA: 1.5e-4 to 3e-4 with 3,000β4,000 steps is effective for clean. // For character or illustration LoRA: 2e-4 to 5e-4 is effective for preserving features.
The exact rate depends on the style and resources.
For style LoRA: 1.5e-4 to 3e-4 with 3,000β4,000 steps is effective for clean. // For character or illustration LoRA: 2e-4 to 5e-4 is effective for preserving features.
The exact rate depends on the style and resources.
Thank you very much for your kind reply.
For style LoRA: 1.5e-4 to 3e-4 with 3,000β4,000 steps is effective for clean. // For character or illustration LoRA: 2e-4 to 5e-4 is effective for preserving features.
The exact rate depends on the style and resources.
Sorry to bother you again, but I would like to confirm a few details.
- How many GPUs did you use, and what type of GPUs are they?
- Also, how did you set the batch size?
- I want to train a model for a traditional Chinese style with around 500 images. Is this dataset size appropriate?
@Bengioalin
Five hundred??? Optimally, anything less than or equal to fifty is enough for training in realism, headshot portraits, or photophilic shots. For other adapter styles (like anime, isometric shots, arts, paintings, etc.), even a small hand-countable set of around 6β24 images is sufficient. The batch size varies depending on the device (C); start with 1 and find your optimal spot. The accelerator I use is an H200 SXM / 6000 Wk. But you can start with 2x to 3x A40.(variational)