Text-to-Image
Diffusers
TensorBoard
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
dreambooth
Run this model with HF Jobs
Run omersen/path-to-save-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/omersen/path-to-save-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/omersen/path-to-save-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 omersen/path-to-save-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use omersen/path-to-save-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("omersen/path-to-save-model", dtype=torch.bfloat16, device_map="cuda") prompt = "a photo of sks dog" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
End of training
Browse filesFiles changed (24)
- README.mdAdded+22
- checkpoint-500/optimizer.binAdded+3
- checkpoint-500/random_states_0.pklAdded+3
- checkpoint-500/scheduler.binAdded+3
- checkpoint-500/unet/config.jsonAdded+65
- checkpoint-500/unet/diffusion_pytorch_model.binAdded+3
- feature_extractor/preprocessor_config.jsonAdded+28
- logs/dreambooth/1691615087.447716/events.out.tfevents.1691615087.8af63744f47f.20844.1Added+3
- logs/dreambooth/1691615087.4510164/hparams.ymlAdded+57
- logs/dreambooth/events.out.tfevents.1691615087.8af63744f47f.20844.0Added+3
- model_index.jsonAdded+34
- safety_checker/config.jsonAdded+168
- safety_checker/pytorch_model.binAdded+3
- scheduler/scheduler_config.jsonAdded+15
- text_encoder/config.jsonAdded+25
- text_encoder/pytorch_model.binAdded+3
- tokenizer/merges.txtAdded
- tokenizer/special_tokens_map.jsonAdded+24
- tokenizer/tokenizer_config.jsonAdded+33
- tokenizer/vocab.jsonAdded
- unet/config.jsonAdded+65
- unet/diffusion_pytorch_model.binAdded+3
- vae/config.jsonAdded+32
- vae/diffusion_pytorch_model.binAdded+3
12345678910111213141516171819202122
---license: creativeml-openrail-mbase_model: CompVis/stable-diffusion-v1-4instance_prompt: a photo of sks dogtags:- stable-diffusion- stable-diffusion-diffusers- text-to-image- diffusers- dreamboothinference: true--- # DreamBooth - omersen/path-to-save-model
This is a dreambooth model derived from CompVis/stable-diffusion-v1-4. The weights were trained on a photo of sks dog using [DreamBooth](https://dreambooth.github.io/).You can find some example images in the following.
DreamBooth for the text encoder was enabled: False.123version https://git-lfs.github.com/spec/v1oid sha256:718e059263555b39d05846fc642711512c9b4282a1aa899f532ec4891e0658d9size 1725109957123version https://git-lfs.github.com/spec/v1oid sha256:cc2290cdc634f3b53e2ea68cfb859f9ce23ba8ead6bf2272b98e78d49b3f0109size 14727123version https://git-lfs.github.com/spec/v1oid sha256:f86d1f18eb9c3519789dd022870fca925dee131f3e73e8a3e37fd52f259592f4size 5631234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.20.0.dev0", "_name_or_path": "CompVis/stable-diffusion-v1-4", "act_fn": "silu", "addition_embed_type": null, "addition_embed_type_num_heads": 64, "addition_time_embed_dim": null, "attention_head_dim": 8, "block_out_channels": [ 320, 640, 1280, 1280 ], "center_input_sample": false, "class_embed_type": null, "class_embeddings_concat": false, "conv_in_kernel": 3, "conv_out_kernel": 3, "cross_attention_dim": 768, "cross_attention_norm": null, "down_block_types": [ "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "DownBlock2D" ], "downsample_padding": 1, "dual_cross_attention": false, "encoder_hid_dim": null, "encoder_hid_dim_type": null, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 4, "layers_per_block": 2, "mid_block_only_cross_attention": null, "mid_block_scale_factor": 1, "mid_block_type": "UNetMidBlock2DCrossAttn", "norm_eps": 1e-05, "norm_num_groups": 32, "num_attention_heads": null, "num_class_embeds": null, "only_cross_attention": false, "out_channels": 4, "projection_class_embeddings_input_dim": null, "resnet_out_scale_factor": 1.0, "resnet_skip_time_act": false, "resnet_time_scale_shift": "default", "sample_size": 64, "time_cond_proj_dim": null, "time_embedding_act_fn": null, "time_embedding_dim": null, "time_embedding_type": "positional", "timestep_post_act": null, "transformer_layers_per_block": 1, "up_block_types": [ "UpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D" ], "upcast_attention": false, "use_linear_projection": false}123version https://git-lfs.github.com/spec/v1oid sha256:69e2e828b9491401b7fda5bf4b6826e259dcd20104c46acb83a6f51110ccc6fbsize 343837597312345678910111213141516171819202122232425262728{ "crop_size": { "height": 224, "width": 224 }, "do_center_crop": true, "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "feature_extractor_type": "CLIPFeatureExtractor", "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_processor_type": "CLIPImageProcessor", "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "shortest_edge": 224 }}123version https://git-lfs.github.com/spec/v1oid sha256:6d10e9bdaee6185d3b52d36441de121f627325b5b3adcb453633c5f0af12d9e8size 2787123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1.0e-08adam_weight_decay: 0.01allow_tf32: falsecenter_crop: falsecheckpointing_steps: 500checkpoints_total_limit: nullclass_data_dir: path-to-class-imagesclass_labels_conditioning: nullclass_prompt: a photo of dogdataloader_num_workers: 0enable_xformers_memory_efficient_attention: truegradient_accumulation_steps: 1gradient_checkpointing: truehub_model_id: nullhub_token: nullinstance_data_dir: ./doginstance_prompt: a photo of sks doglearning_rate: 2.0e-06local_rank: -1logging_dir: logslr_num_cycles: 1lr_power: 1.0lr_scheduler: constantlr_warmup_steps: 0max_grad_norm: 1.0max_train_steps: 800mixed_precision: nullnum_class_images: 200num_train_epochs: 4num_validation_images: 4offset_noise: falseoutput_dir: path-to-save-modelpre_compute_text_embeddings: falsepretrained_model_name_or_path: CompVis/stable-diffusion-v1-4prior_generation_precision: nullprior_loss_weight: 1.0push_to_hub: truereport_to: tensorboardresolution: 512resume_from_checkpoint: nullrevision: nullsample_batch_size: 4scale_lr: falseseed: nullset_grads_to_none: trueskip_save_text_encoder: falsetext_encoder_use_attention_mask: falsetokenizer_max_length: nulltokenizer_name: nulltrain_batch_size: 1train_text_encoder: falseuse_8bit_adam: truevalidation_prompt: nullvalidation_steps: 100with_prior_preservation: true123version https://git-lfs.github.com/spec/v1oid sha256:0c202f3a1efea1172d91c6e7cd6f184e2d4d914e3edc7fb9fb11ec5971a5b81fsize 6703412345678910111213141516171819202122232425262728293031323334{ "_class_name": "StableDiffusionPipeline", "_diffusers_version": "0.20.0.dev0", "_name_or_path": "CompVis/stable-diffusion-v1-4", "feature_extractor": [ "transformers", "CLIPImageProcessor" ], "requires_safety_checker": true, "safety_checker": [ "stable_diffusion", "StableDiffusionSafetyChecker" ], "scheduler": [ "diffusers", "PNDMScheduler" ], "text_encoder": [ "transformers", "CLIPTextModel" ], "tokenizer": [ "transformers", "CLIPTokenizer" ], "unet": [ "diffusers", "UNet2DConditionModel" ], "vae": [ "diffusers", "AutoencoderKL" ]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168{ "_commit_hash": "b95be7d6f134c3a9e62ee616f310733567f069ce", "_name_or_path": "/root/.cache/huggingface/hub/models--CompVis--stable-diffusion-v1-4/snapshots/b95be7d6f134c3a9e62ee616f310733567f069ce/safety_checker", "architectures": [ "StableDiffusionSafetyChecker" ], "initializer_factor": 1.0, "logit_scale_init_value": 2.6592, "model_type": "clip", "projection_dim": 768, "text_config": { "_name_or_path": "", "add_cross_attention": false, "architectures": null, "attention_dropout": 0.0, "bad_words_ids": null, "begin_suppress_tokens": null, "bos_token_id": 49406, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "dropout": 0.0, "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "eos_token_id": 49407, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "hidden_act": "quick_gelu", "hidden_size": 768, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 3072, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_norm_eps": 1e-05, "length_penalty": 1.0, "max_length": 20, "max_position_embeddings": 77, "min_length": 0, "model_type": "clip_text_model", "no_repeat_ngram_size": 0, "num_attention_heads": 12, "num_beam_groups": 1, "num_beams": 1, "num_hidden_layers": 12, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": 1, "prefix": null, "problem_type": null, "projection_dim": 512, "pruned_heads": {}, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "sep_token_id": null, "suppress_tokens": null, "task_specific_params": null, "temperature": 1.0, "tf_legacy_loss": false, "tie_encoder_decoder": false, "tie_word_embeddings": true, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torch_dtype": null, "torchscript": false, "transformers_version": "4.31.0", "typical_p": 1.0, "use_bfloat16": false, "vocab_size": 49408 }, "torch_dtype": "float32", "transformers_version": null, "vision_config": { "_name_or_path": "", "add_cross_attention": false, "architectures": null, "attention_dropout": 0.0, "bad_words_ids": null, "begin_suppress_tokens": null, "bos_token_id": null, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "dropout": 0.0, "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "eos_token_id": null, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "hidden_act": "quick_gelu", "hidden_size": 1024, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "image_size": 224, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 4096, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_norm_eps": 1e-05, "length_penalty": 1.0, "max_length": 20, "min_length": 0, "model_type": "clip_vision_model", "no_repeat_ngram_size": 0, "num_attention_heads": 16, "num_beam_groups": 1, "num_beams": 1, "num_channels": 3, "num_hidden_layers": 24, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": null, "patch_size": 14, "prefix": null, "problem_type": null, "projection_dim": 512, "pruned_heads": {}, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "sep_token_id": null, "suppress_tokens": null, "task_specific_params": null, "temperature": 1.0, "tf_legacy_loss": false, "tie_encoder_decoder": false, "tie_word_embeddings": true, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torch_dtype": null, "torchscript": false, "transformers_version": "4.31.0", "typical_p": 1.0, "use_bfloat16": false }}123version https://git-lfs.github.com/spec/v1oid sha256:753acd54aa6d288d6c0ce9d51468eb28f495fcbaacf0edf755fa5fc7ce678cd9size 1216062333123456789101112131415{ "_class_name": "PNDMScheduler", "_diffusers_version": "0.20.0.dev0", "beta_end": 0.012, "beta_schedule": "scaled_linear", "beta_start": 0.00085, "clip_sample": false, "num_train_timesteps": 1000, "prediction_type": "epsilon", "set_alpha_to_one": false, "skip_prk_steps": true, "steps_offset": 1, "timestep_spacing": "leading", "trained_betas": null}12345678910111213141516171819202122232425{ "_name_or_path": "CompVis/stable-diffusion-v1-4", "architectures": [ "CLIPTextModel" ], "attention_dropout": 0.0, "bos_token_id": 0, "dropout": 0.0, "eos_token_id": 2, "hidden_act": "quick_gelu", "hidden_size": 768, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-05, "max_position_embeddings": 77, "model_type": "clip_text_model", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 1, "projection_dim": 512, "torch_dtype": "float32", "transformers_version": "4.31.0", "vocab_size": 49408}123version https://git-lfs.github.com/spec/v1oid sha256:e81b8000c20990d3908418fe5e005a84e749cc15e615bf9852ec510b4805dd1bsize 492308829123456789101112131415161718192021222324{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": "<|endoftext|>", "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233{ "add_prefix_space": false, "bos_token": { "__type": "AddedToken", "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "clean_up_tokenization_spaces": true, "do_lower_case": true, "eos_token": { "__type": "AddedToken", "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "errors": "replace", "model_max_length": 77, "pad_token": "<|endoftext|>", "tokenizer_class": "CLIPTokenizer", "unk_token": { "__type": "AddedToken", "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.20.0.dev0", "_name_or_path": "CompVis/stable-diffusion-v1-4", "act_fn": "silu", "addition_embed_type": null, "addition_embed_type_num_heads": 64, "addition_time_embed_dim": null, "attention_head_dim": 8, "block_out_channels": [ 320, 640, 1280, 1280 ], "center_input_sample": false, "class_embed_type": null, "class_embeddings_concat": false, "conv_in_kernel": 3, "conv_out_kernel": 3, "cross_attention_dim": 768, "cross_attention_norm": null, "down_block_types": [ "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "DownBlock2D" ], "downsample_padding": 1, "dual_cross_attention": false, "encoder_hid_dim": null, "encoder_hid_dim_type": null, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 4, "layers_per_block": 2, "mid_block_only_cross_attention": null, "mid_block_scale_factor": 1, "mid_block_type": "UNetMidBlock2DCrossAttn", "norm_eps": 1e-05, "norm_num_groups": 32, "num_attention_heads": null, "num_class_embeds": null, "only_cross_attention": false, "out_channels": 4, "projection_class_embeddings_input_dim": null, "resnet_out_scale_factor": 1.0, "resnet_skip_time_act": false, "resnet_time_scale_shift": "default", "sample_size": 64, "time_cond_proj_dim": null, "time_embedding_act_fn": null, "time_embedding_dim": null, "time_embedding_type": "positional", "timestep_post_act": null, "transformer_layers_per_block": 1, "up_block_types": [ "UpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D" ], "upcast_attention": false, "use_linear_projection": false}123version https://git-lfs.github.com/spec/v1oid sha256:fd40d3c5a9270930524f72db53ed37b552b68c6d6110a7dd67137756d01f5ebdsize 34383759731234567891011121314151617181920212223242526272829303132{ "_class_name": "AutoencoderKL", "_diffusers_version": "0.20.0.dev0", "_name_or_path": "/root/.cache/huggingface/hub/models--CompVis--stable-diffusion-v1-4/snapshots/b95be7d6f134c3a9e62ee616f310733567f069ce/vae", "act_fn": "silu", "block_out_channels": [ 128, 256, 512, 512 ], "down_block_types": [ "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D" ], "force_upcast": true, "in_channels": 3, "latent_channels": 4, "layers_per_block": 2, "norm_num_groups": 32, "out_channels": 3, "sample_size": 512, "scaling_factor": 0.18215, "up_block_types": [ "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D" ]}123version https://git-lfs.github.com/spec/v1oid sha256:c02e0c7c263a4c0630ca3a72380ff55b9e38e0ab41d64dff7bf620a58342bc75size 334712113README.mdAdded+22
checkpoint-500/optimizer.binAdded+3
checkpoint-500/random_states_0.pklAdded+3
checkpoint-500/scheduler.binAdded+3
checkpoint-500/unet/config.jsonAdded+65
checkpoint-500/unet/diffusion_pytorch_model.binAdded+3
feature_extractor/preprocessor_config.jsonAdded+28
logs/dreambooth/1691615087.447716/events.out.tfevents.1691615087.8af63744f47f.20844.1Added+3
logs/dreambooth/1691615087.4510164/hparams.ymlAdded+57
logs/dreambooth/events.out.tfevents.1691615087.8af63744f47f.20844.0Added+3
model_index.jsonAdded+34
safety_checker/config.jsonAdded+168
safety_checker/pytorch_model.binAdded+3
scheduler/scheduler_config.jsonAdded+15
text_encoder/config.jsonAdded+25
text_encoder/pytorch_model.binAdded+3
tokenizer/merges.txtAdded
tokenizer/special_tokens_map.jsonAdded+24
tokenizer/tokenizer_config.jsonAdded+33
tokenizer/vocab.jsonAdded
unet/config.jsonAdded+65
unet/diffusion_pytorch_model.binAdded+3
vae/config.jsonAdded+32
vae/diffusion_pytorch_model.binAdded+3