Instructions to use Cossale/frames with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Cossale/frames 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("Cossale/frames") prompt = "a road leading to a mountain in a night, visible moon and stars. FRM$" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse filesFiles changed (8)
- README.mdAdded+31
- dataset.tomlAdded+14
- frames-000004.safetensorsAdded+3
- frames-000008.safetensorsAdded+3
- frames-000012.safetensorsAdded+3
- frames.safetensorsAdded+3
- sample_prompts.txtAdded+1
- train.shAdded+34
12345678910111213141516171819202122232425262728293031---tags:- text-to-image- flux- lora- diffusers- template:sd-lora- fluxgym
base_model: black-forest-labs/FLUX.1-devinstance_prompt: FRM$license: otherlicense_name: flux-1-dev-non-commercial-licenselicense_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md---
# Frames
A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
<Gallery />
## Trigger words
You should use `FRM$` to trigger the image generation.
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
Weights for this model are available in Safetensors format.
1234567891011121314[general]shuffle_caption = falsecaption_extension = '.txt'keep_tokens = 1
[[datasets]]resolution = 512batch_size = 1keep_tokens = 1
[[datasets.subsets]] image_dir = '/root/fluxgym/datasets/frames' class_tokens = 'FRM$' num_repeats = 6123version https://git-lfs.github.com/spec/v1oid sha256:4fe26c6f084b0cb60460f5b28d24e194c6e8e75c0b8cd8769522722d0dde33a5size 39763224123version https://git-lfs.github.com/spec/v1oid sha256:36e8c765bdedf7f057c8dd7187da5341b78effa7ac12cb038f290d8035c38384size 39763224123version https://git-lfs.github.com/spec/v1oid sha256:c659c1e7a9c6bef1140586d6a8cca16673417401dbf7f3833e2f64a75cb209d2size 39763224123version https://git-lfs.github.com/spec/v1oid sha256:9835f8dfe18cc3ab501fd4dd545f6776a8bd20ebb3092759d9421d212f75012csize 397632241FRM$12345678910111213141516171819202122232425262728293031323334accelerate launch \ --mixed_precision bf16 \ --num_cpu_threads_per_process 1 \ sd-scripts/flux_train_network.py \ --pretrained_model_name_or_path "/root/fluxgym/models/unet/flux1-dev.sft" \ --clip_l "/root/fluxgym/models/clip/clip_l.safetensors" \ --t5xxl "/root/fluxgym/models/clip/t5xxl_fp16.safetensors" \ --ae "/root/fluxgym/models/vae/ae.sft" \ --cache_latents_to_disk \ --save_model_as safetensors \ --sdpa --persistent_data_loader_workers \ --max_data_loader_n_workers 2 \ --seed 42 \ --gradient_checkpointing \ --mixed_precision bf16 \ --save_precision bf16 \ --network_module networks.lora_flux \ --network_dim 4 \ --optimizer_type adamw8bit \ --learning_rate 8e-4 \ --cache_text_encoder_outputs \ --cache_text_encoder_outputs_to_disk \ --fp8_base \ --highvram \ --max_train_epochs 16 \ --save_every_n_epochs 4 \ --dataset_config "/root/fluxgym/outputs/frames/dataset.toml" \ --output_dir "/root/fluxgym/outputs/frames" \ --output_name frames \ --timestep_sampling shift \ --discrete_flow_shift 3.1582 \ --model_prediction_type raw \ --guidance_scale 1 \ --loss_type l2 \README.mdAdded+31
dataset.tomlAdded+14
frames-000004.safetensorsAdded+3
frames-000008.safetensorsAdded+3
frames-000012.safetensorsAdded+3
frames.safetensorsAdded+3
sample_prompts.txtAdded+1
train.shAdded+34