Instructions to use raylek/newmodel2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use raylek/newmodel2 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("raylek/newmodel2") prompt = "MODEL2" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| [general] | |
| shuffle_caption = false | |
| caption_extension = '.txt' | |
| keep_tokens = 1 | |
| [[datasets]] | |
| resolution = 768 | |
| batch_size = 1 | |
| keep_tokens = 1 | |
| [[datasets.subsets]] | |
| image_dir = '/app/fluxgym/datasets/model2' | |
| class_tokens = 'MODEL2' | |
| num_repeats = 25 |