Run this model with HF Jobs
Run Sri2901/mood_sunglass 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/Sri2901/mood_sunglass. 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/Sri2901/mood_sunglass 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 Sri2901/mood_sunglass with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Sri2901/mood_sunglass 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("Sri2901/mood_sunglass") prompt = "Sample generation" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload model via CLI
Browse filesFiles changed (49)
- .job_config.jsonAdded+133
- M_Sunglasses.safetensorsAdded+3
- M_Sunglasses_000000250.safetensorsAdded+3
- M_Sunglasses_000000500.safetensorsAdded+3
- M_Sunglasses_000000750.safetensorsAdded+3
- M_Sunglasses_000001000.safetensorsAdded+3
- M_Sunglasses_000001250.safetensorsAdded+3
- M_Sunglasses_000001500.safetensorsAdded+3
- M_Sunglasses_000001750.safetensorsAdded+3
- README.mdAdded+54
- config.yamlAdded+123
- log.txtAdded
- optimizer.ptAdded+3
- samples/1756188753236__000000000_0.jpgAdded
- samples/1756188770813__000000000_1.jpgAdded
- samples/1756188788435__000000000_2.jpgAdded
- samples/1756188806181__000000000_3.jpgAdded
- samples/1756189625117__000000250_0.jpgAdded
- samples/1756189643040__000000250_1.jpgAdded
- samples/1756189660988__000000250_2.jpgAdded
- samples/1756189678983__000000250_3.jpgAdded
- samples/1756190485454__000000500_0.jpgAdded
- samples/1756190503441__000000500_1.jpgAdded
- samples/1756190521393__000000500_2.jpgAdded
- samples/1756190539379__000000500_3.jpgAdded
- samples/1756191359823__000000750_0.jpgAdded
- samples/1756191377758__000000750_1.jpgAdded
- samples/1756191395703__000000750_2.jpgAdded
- samples/1756191413674__000000750_3.jpgAdded
- samples/1756192247256__000001000_0.jpgAdded
- samples/1756192265213__000001000_1.jpgAdded
- samples/1756192283192__000001000_2.jpgAdded
- samples/1756192301192__000001000_3.jpgAdded
- samples/1756193115040__000001250_0.jpgAdded
- samples/1756193132942__000001250_1.jpgAdded
- samples/1756193150811__000001250_2.jpgAdded
- samples/1756193168733__000001250_3.jpgAdded
- samples/1756193996742__000001500_0.jpgAdded
- samples/1756194014680__000001500_1.jpgAdded
- samples/1756194032601__000001500_2.jpgAdded
- samples/1756194050542__000001500_3.jpgAdded
- samples/1756194867448__000001750_0.jpgAdded
- samples/1756194885364__000001750_1.jpgAdded
- samples/1756194903271__000001750_2.jpgAdded
- samples/1756194921203__000001750_3.jpgAdded
- samples/1756195740786__000002000_0.jpgAdded
- samples/1756195758699__000002000_1.jpgAdded
- samples/1756195776608__000002000_2.jpgAdded
- samples/1756195794523__000002000_3.jpgAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133{ "job": "extension", "config": { "name": "M_Sunglasses", "process": [ { "type": "ui_trainer", "training_folder": "/workspace/ai-toolkit/output", "sqlite_db_path": "/workspace/ai-toolkit/aitk_db.db", "device": "cuda", "trigger_word": "s@ngl@ss", "performance_log_every": 10, "network": { "type": "lora", "linear": 32, "linear_alpha": 32, "conv": 16, "conv_alpha": 16, "lokr_full_rank": true, "lokr_factor": -1, "network_kwargs": { "ignore_if_contains": [] } }, "save": { "dtype": "bf16", "save_every": 250, "max_step_saves_to_keep": 8, "save_format": "diffusers", "push_to_hub": false }, "datasets": [ { "folder_path": "/workspace/ai-toolkit/datasets/m_sunglass", "control_path": null, "mask_path": null, "mask_min_value": 0.1, "default_caption": "", "caption_ext": "txt", "caption_dropout_rate": 0.05, "cache_latents_to_disk": false, "is_reg": false, "network_weight": 1, "resolution": [ 512, 768, 1024, 1280, 1536 ], "controls": [], "shrink_video_to_frames": true, "num_frames": 1, "do_i2v": true, "flip_x": false, "flip_y": false } ], "train": { "batch_size": 1, "bypass_guidance_embedding": false, "steps": 2000, "gradient_accumulation": 1, "train_unet": true, "train_text_encoder": false, "gradient_checkpointing": true, "noise_scheduler": "flowmatch", "optimizer": "adamw8bit", "timestep_type": "shift", "content_or_style": "balanced", "optimizer_params": { "weight_decay": 0.0001 }, "unload_text_encoder": false, "cache_text_embeddings": false, "lr": 0.0001, "ema_config": { "use_ema": true, "ema_decay": 0.99 }, "skip_first_sample": false, "disable_sampling": false, "dtype": "bf16", "diff_output_preservation": false, "diff_output_preservation_multiplier": 1, "diff_output_preservation_class": "person", "switch_boundary_every": 1 }, "model": { "name_or_path": "black-forest-labs/FLUX.1-dev", "quantize": false, "qtype": "qfloat8", "quantize_te": true, "qtype_te": "qfloat8", "arch": "flux", "low_vram": false, "model_kwargs": {} }, "sample": { "sampler": "flowmatch", "sample_every": 250, "width": 1024, "height": 1024, "samples": [ { "prompt": "s@ngl@ss,Translucent ice-blue frames rest on a soft grey surface, with streaks of diffused daylight creating fluid shadows around them. The clean backdrop and subtle reflections emphasize the modern, sculptural design of the eyewear." }, { "prompt": "s@ngl@ss, A pair of tortoiseshell square-frame glasses is carefully balanced upright against a warm beige surface, lit dramatically from the left. The angled spotlight casts elongated shadows, emphasizing the sculpted frame edges and polished acetate finish. The smooth gradient background adds depth, allowing the rich tones of the eyewear to stand out with timeless sophistication." }, { "prompt": "s@ngl@ss, A pair of cream-toned cat-eye sunglasses rests on a rippled satin backdrop, softly illuminated by warm daylight from the right. The flowing fabric casts delicate shadows that echo the curves of the frame, creating a luxurious interplay of texture and shine. The angled composition highlights the bold silhouette while the surface reflections on the lenses add depth and sophistication." }, { "prompt": "s@ngl@ss, Resting on a warm golden-beige fabric background, the cat-eye sunglasses take center stage with bold tortoiseshell frames and ivory temples. Soft directional lighting from the upper right casts elegant flowing shadows across the surface, adding depth and movement that accentuate the glossy lenses. The composition feels luxurious and cinematic, with the textured backdrop enhancing the sculptural form of the eyewear." } ], "neg": "", "seed": 42, "walk_seed": true, "guidance_scale": 3, "sample_steps": 30, "num_frames": 1, "fps": 1 } } ] }, "meta": { "name": "[name]", "version": "1.0" }}123version https://git-lfs.github.com/spec/v1oid sha256:06542a56b7199581a4173addb2d98d77fb75c1bb49bcfa76da1daaf08b066542size 343806432123version https://git-lfs.github.com/spec/v1oid sha256:96b4c58120d588b3c231173474523556ccf5e62a84c7e63d17e22b04a77e7896size 343806432123version https://git-lfs.github.com/spec/v1oid sha256:ae6173aa6c8e5b5ea68c0036818eebcf431a689c55c16701a00a155dcee4b9d9size 343806432123version https://git-lfs.github.com/spec/v1oid sha256:7b9c78c600d0c89cdefa8e1bb83aaceeffbc6a1f6cec0bf3ff71ccd71b54e9fbsize 343806432123version https://git-lfs.github.com/spec/v1oid sha256:0b6e4afc8c68e852edfdd06def1fbd36bb161ac3b5691c6102fdfe081694e3c2size 343806432123version https://git-lfs.github.com/spec/v1oid sha256:b24abf39ca8f6d0d68f1d197e92801e67a0bd5d8df1e3b53c9b90486dc113a3dsize 343806432123version https://git-lfs.github.com/spec/v1oid sha256:8ee6ef4c9aa01abc4a8524d759f278aa36cfd5859ca61616e9f720ad9568698asize 343806432123version https://git-lfs.github.com/spec/v1oid sha256:8e4818a142d32ac2cde28002aa2f82ec25b5ae192455e5b6cb91e34e511e0954size 343806432123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354---tags:- text-to-image- flux- lora- diffusers- template:sd-lora- ai-toolkitbase_model: black-forest-labs/FLUX.1-devinstance_prompt: s@ngl@sslicense: otherlicense_name: flux-1-dev-non-commercial-licenselicense_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.mdwidget:- text: Sample generation output: url: samples/1756188753236__000000000_0.jpg- text: Sample generation output: url: samples/1756188770813__000000000_1.jpg- text: Sample generation output: url: samples/1756188788435__000000000_2.jpg---
# M_Sunglasses
Model trained with AI Toolkit by Ostris
<Gallery />
## Trigger words
You should use `s@ngl@ss` to trigger the image generation.
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc.
Weights for this model are available in Safetensors format.
[Download](/username/M_Sunglasses/tree/main) them in the Files & versions tab.
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
```pyfrom diffusers import AutoPipelineForText2Imageimport torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')pipeline.load_lora_weights('username/M_Sunglasses', weight_name='M_Sunglasses_000000250.safetensors')image = pipeline('s@ngl@ss style artwork').images[0]image.save("my_image.png")```
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123job: extensionconfig: name: M_Sunglasses process: - type: ui_trainer training_folder: /workspace/ai-toolkit/output sqlite_db_path: /workspace/ai-toolkit/aitk_db.db device: cuda trigger_word: s@ngl@ss performance_log_every: 10 network: type: lora linear: 32 linear_alpha: 32 conv: 16 conv_alpha: 16 lokr_full_rank: true lokr_factor: -1 network_kwargs: ignore_if_contains: [] save: dtype: bf16 save_every: 250 max_step_saves_to_keep: 8 save_format: diffusers push_to_hub: false datasets: - folder_path: /workspace/ai-toolkit/datasets/m_sunglass control_path: null mask_path: null mask_min_value: 0.1 default_caption: '' caption_ext: txt caption_dropout_rate: 0.05 cache_latents_to_disk: false is_reg: false network_weight: 1 resolution: - 512 - 768 - 1024 - 1280 - 1536 controls: [] shrink_video_to_frames: true num_frames: 1 do_i2v: true flip_x: false flip_y: false train: batch_size: 1 bypass_guidance_embedding: false steps: 2000 gradient_accumulation: 1 train_unet: true train_text_encoder: false gradient_checkpointing: true noise_scheduler: flowmatch optimizer: adamw8bit timestep_type: shift content_or_style: balanced optimizer_params: weight_decay: 0.0001 unload_text_encoder: false cache_text_embeddings: false lr: 0.0001 ema_config: use_ema: true ema_decay: 0.99 skip_first_sample: false disable_sampling: false dtype: bf16 diff_output_preservation: false diff_output_preservation_multiplier: 1 diff_output_preservation_class: person switch_boundary_every: 1 model: name_or_path: black-forest-labs/FLUX.1-dev quantize: false qtype: qfloat8 quantize_te: true qtype_te: qfloat8 arch: flux low_vram: false model_kwargs: {} sample: sampler: flowmatch sample_every: 250 width: 1024 height: 1024 samples: - prompt: s@ngl@ss,Translucent ice-blue frames rest on a soft grey surface, with streaks of diffused daylight creating fluid shadows around them. The clean backdrop and subtle reflections emphasize the modern, sculptural design of the eyewear. - prompt: s@ngl@ss, A pair of tortoiseshell square-frame glasses is carefully balanced upright against a warm beige surface, lit dramatically from the left. The angled spotlight casts elongated shadows, emphasizing the sculpted frame edges and polished acetate finish. The smooth gradient background adds depth, allowing the rich tones of the eyewear to stand out with timeless sophistication. - prompt: s@ngl@ss, A pair of cream-toned cat-eye sunglasses rests on a rippled satin backdrop, softly illuminated by warm daylight from the right. The flowing fabric casts delicate shadows that echo the curves of the frame, creating a luxurious interplay of texture and shine. The angled composition highlights the bold silhouette while the surface reflections on the lenses add depth and sophistication. - prompt: s@ngl@ss, Resting on a warm golden-beige fabric background, the cat-eye sunglasses take center stage with bold tortoiseshell frames and ivory temples. Soft directional lighting from the upper right casts elegant flowing shadows across the surface, adding depth and movement that accentuate the glossy lenses. The composition feels luxurious and cinematic, with the textured backdrop enhancing the sculptural form of the eyewear. neg: '' seed: 42 walk_seed: true guidance_scale: 3 sample_steps: 30 num_frames: 1 fps: 1meta: name: M_Sunglasses version: '1.0'123version https://git-lfs.github.com/spec/v1oid sha256:708c664488a0a08fc94666605b3609af4ef9388428cdd75d81549ebf93dd82cesize 350203413.job_config.jsonAdded+133
M_Sunglasses.safetensorsAdded+3
M_Sunglasses_000000250.safetensorsAdded+3
M_Sunglasses_000000500.safetensorsAdded+3
M_Sunglasses_000000750.safetensorsAdded+3
M_Sunglasses_000001000.safetensorsAdded+3
M_Sunglasses_000001250.safetensorsAdded+3
M_Sunglasses_000001500.safetensorsAdded+3
M_Sunglasses_000001750.safetensorsAdded+3
README.mdAdded+54
config.yamlAdded+123
log.txtAdded
optimizer.ptAdded+3
samples/1756188753236__000000000_0.jpgAdded

samples/1756188770813__000000000_1.jpgAdded

samples/1756188788435__000000000_2.jpgAdded

samples/1756188806181__000000000_3.jpgAdded

samples/1756189625117__000000250_0.jpgAdded

samples/1756189643040__000000250_1.jpgAdded

samples/1756189660988__000000250_2.jpgAdded

samples/1756189678983__000000250_3.jpgAdded

samples/1756190485454__000000500_0.jpgAdded

samples/1756190503441__000000500_1.jpgAdded

samples/1756190521393__000000500_2.jpgAdded

samples/1756190539379__000000500_3.jpgAdded

samples/1756191359823__000000750_0.jpgAdded

samples/1756191377758__000000750_1.jpgAdded

samples/1756191395703__000000750_2.jpgAdded

samples/1756191413674__000000750_3.jpgAdded

samples/1756192247256__000001000_0.jpgAdded

samples/1756192265213__000001000_1.jpgAdded

samples/1756192283192__000001000_2.jpgAdded

samples/1756192301192__000001000_3.jpgAdded

samples/1756193115040__000001250_0.jpgAdded

samples/1756193132942__000001250_1.jpgAdded

samples/1756193150811__000001250_2.jpgAdded

samples/1756193168733__000001250_3.jpgAdded

samples/1756193996742__000001500_0.jpgAdded

samples/1756194014680__000001500_1.jpgAdded

samples/1756194032601__000001500_2.jpgAdded

samples/1756194050542__000001500_3.jpgAdded

samples/1756194867448__000001750_0.jpgAdded

samples/1756194885364__000001750_1.jpgAdded

samples/1756194903271__000001750_2.jpgAdded

samples/1756194921203__000001750_3.jpgAdded

samples/1756195740786__000002000_0.jpgAdded

samples/1756195758699__000002000_1.jpgAdded

samples/1756195776608__000002000_2.jpgAdded

samples/1756195794523__000002000_3.jpgAdded
