Text-to-Image
Diffusers
TensorBoard
lora
diffusers-training
stable-diffusion
stable-diffusion-diffusers
Run this model with HF Jobs
Run codeiceman/rice-model 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/codeiceman/rice-model. 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/codeiceman/rice-model 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 codeiceman/rice-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use codeiceman/rice-model with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("codeiceman/rice-model") prompt = "a photo of tasty rice" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
End of training
Browse filesFiles changed (9)
- README.mdAdded+47
- image_0.pngAdded
- image_1.pngAdded
- image_2.pngAdded
- image_3.pngAdded
- logs/dreambooth-lora/1722482543.7354927/events.out.tfevents.1722482543.6fec217efaa8.174021.1Added+3
- logs/dreambooth-lora/1722482543.7368891/hparams.ymlAdded+56
- logs/dreambooth-lora/events.out.tfevents.1722482543.6fec217efaa8.174021.0Added+3
- pytorch_lora_weights.safetensorsAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647---base_model: runwayml/stable-diffusion-v1-5library_name: diffuserslicense: creativeml-openrail-mtags:- text-to-image- diffusers- lora- diffusers-training- stable-diffusion- stable-diffusion-diffusersinference: trueinstance_prompt: a photo of tasty rice---
<!-- This model card has been generated automatically according to the information the training script had access to. Youshould probably proofread and complete it, then remove this comment. -->
# LoRA DreamBooth - codeiceman/rice-model
These are LoRA adaption weights for runwayml/stable-diffusion-v1-5. The weights were trained on a photo of tasty rice using [DreamBooth](https://dreambooth.github.io/). You can find some example images in the following.

LoRA for the text encoder was enabled: False.
## Intended uses & limitations
#### How to use
```python# TODO: add an example code snippet for running this diffusion pipeline```
#### Limitations and bias
[TODO: provide examples of latent issues and potential remediations]
## Training details
[TODO: describe the data used to train the model]123version https://git-lfs.github.com/spec/v1oid sha256:866fe8e666ac40db807077562a3592e7f685878b302a3e036038d83ca2a87e45size 25781234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1.0e-08adam_weight_decay: 0.01allow_tf32: falsecenter_crop: falsecheckpointing_steps: 100checkpoints_total_limit: nullclass_data_dir: nullclass_labels_conditioning: nullclass_prompt: nulldataloader_num_workers: 0enable_xformers_memory_efficient_attention: falsegradient_accumulation_steps: 1gradient_checkpointing: falsehub_model_id: nullhub_token: nullinstance_data_dir: riceinstance_prompt: a photo of tasty ricelearning_rate: 0.0001local_rank: -1logging_dir: logslr_num_cycles: 1lr_power: 1.0lr_scheduler: constantlr_warmup_steps: 0max_grad_norm: 1.0max_train_steps: 10mixed_precision: nullnum_class_images: 100num_train_epochs: 1num_validation_images: 4output_dir: rice-modelpre_compute_text_embeddings: falsepretrained_model_name_or_path: runwayml/stable-diffusion-v1-5prior_generation_precision: nullprior_loss_weight: 1.0push_to_hub: truerank: 4report_to: tensorboardresolution: 512resume_from_checkpoint: nullrevision: nullsample_batch_size: 4scale_lr: falseseed: 0text_encoder_use_attention_mask: falsetokenizer_max_length: nulltokenizer_name: nulltrain_batch_size: 1train_text_encoder: falseuse_8bit_adam: falsevalidation_epochs: 50validation_prompt: a plate of ricevariant: nullwith_prior_preservation: false123version https://git-lfs.github.com/spec/v1oid sha256:ce374fff7e9655185ca306bffd12f69fca0fe3ff112d07c67eebd614cae9b9c2size 3187993123version https://git-lfs.github.com/spec/v1oid sha256:e491ff5b4a369801db629fb7c836c51e4f9046ceaff04034ce7141c6139a9721size 3226184README.mdAdded+47
image_0.pngAdded

image_1.pngAdded

image_2.pngAdded

image_3.pngAdded

logs/dreambooth-lora/1722482543.7354927/events.out.tfevents.1722482543.6fec217efaa8.174021.1Added+3
logs/dreambooth-lora/1722482543.7368891/hparams.ymlAdded+56
logs/dreambooth-lora/events.out.tfevents.1722482543.6fec217efaa8.174021.0Added+3
pytorch_lora_weights.safetensorsAdded+3