Text-to-Image
Diffusers
Trained with AutoTrain
stable-diffusion
stable-diffusion-diffusers
lora
template:sd-lora
Run this model with HF Jobs
Run stablediffusionapi/my-stablediffusion-lora-6484 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/stablediffusionapi/my-stablediffusion-lora-6484. 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/stablediffusionapi/my-stablediffusion-lora-6484 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 stablediffusionapi/my-stablediffusion-lora-6484 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stablediffusionapi/my-stablediffusion-lora-6484 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("stablediffusionapi/my-stablediffusion-lora-6484") prompt = "photo of ambika0 man" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
End of training
Browse filesFiles changed (5)
- README.mdAdded+37
- prompt.txtAdded+1
- pytorch_lora_weights.safetensorsAdded+3
- pytorch_lora_weights_kohya.safetensorsAdded+3
- training_params.jsonAdded+1
12345678910111213141516171819202122232425262728293031323334353637---tags:- autotrain- stable-diffusion- stable-diffusion-diffusers- text-to-image- diffusers- lora- template:sd-lora
base_model: stable-diffusion-v1-5/stable-diffusion-v1-5instance_prompt: photo of ambika0 manlicense: openrail++---# ModelsLab LoRA DreamBooth Training - stablediffusionapi/my-stablediffusion-lora-6484These are LoRA adaption weights for stable-diffusion-v1-5/stable-diffusion-v1-5. The weights were trained on photo of ambika0 man using [ModelsLab](https://modelslab.com).LoRA for the text encoder was enabled: False.
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)```py!pip install -q transformers accelerate peft diffusersfrom diffusers import DiffusionPipelineimport torch
pipe_id = "Lykon/DreamShaper"pipe = DiffusionPipeline.from_pretrained(pipe_id, torch_dtype=torch.float16).to("cuda")pipe.load_lora_weights("stablediffusionapi/my-stablediffusion-lora-6484", weight_name="pytorch_lora_weights.safetensors", adapter_name="abc")prompt = "abc of a hacker with a hoodie"lora_scale = 0.9image = pipe( prompt, num_inference_steps=30, cross_attention_kwargs={"scale": 0.9}, generator=torch.manual_seed(0)).images[0]image```1photo of ambika0 man123version https://git-lfs.github.com/spec/v1oid sha256:e25f2713e510a93ab9bc67b24b64694fa4466186fbddb2a6747cb72a87a02df7size 12792952123version https://git-lfs.github.com/spec/v1oid sha256:2d30148d7ab47dcd7c6efb039339145c72ab3876de2bf12e1d849b73d9073692size 128116641{"model": "stable-diffusion-v1-5/stable-diffusion-v1-5", "vae_model": null, "revision": null, "tokenizer": null, "image_path": "my-stablediffusion-lora-6484/autotrain-data", "class_image_path": null, "prompt": "photo of ambika0 man", "class_prompt": null, "num_class_images": 100, "class_labels_conditioning": null, "prior_preservation": false, "prior_loss_weight": 1.0, "project_name": "my-stablediffusion-lora-6484", "seed": 42, "resolution": 1024, "center_crop": false, "train_text_encoder": false, "batch_size": 4, "sample_batch_size": 4, "epochs": 1, "num_steps": 5, "checkpointing_steps": 500, "resume_from_checkpoint": null, "gradient_accumulation": 4, "disable_gradient_checkpointing": false, "lr": 0.0005, "scale_lr": false, "scheduler": "constant", "warmup_steps": 0, "num_cycles": 1, "lr_power": 1.0, "dataloader_num_workers": 0, "use_8bit_adam": false, "adam_beta1": 0.9, "adam_beta2": 0.999, "adam_weight_decay": 0.01, "adam_epsilon": 1e-08, "max_grad_norm": 1.0, "allow_tf32": false, "prior_generation_precision": null, "local_rank": -1, "xformers": false, "pre_compute_text_embeddings": false, "tokenizer_max_length": null, "text_encoder_use_attention_mask": false, "rank": 16, "xl": false, "mixed_precision": "fp16", "push_to_hub": true, "username": "stablediffusionapi", "hf_private": false, "validation_prompt": null, "num_validation_images": 4, "validation_epochs": 50, "checkpoints_total_limit": null, "validation_images": null, "logging": false}README.mdAdded+37
prompt.txtAdded+1
pytorch_lora_weights.safetensorsAdded+3
pytorch_lora_weights_kohya.safetensorsAdded+3
training_params.jsonAdded+1