Instructions to use harshee77/green-gap-tshirt-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use harshee77/green-gap-tshirt-diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("harshee77/green-gap-tshirt-diffusion", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download args.json from harshee77/green-gap-tshirt-diffusion: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/harshee77/green-gap-tshirt-diffusion/resolve/main/args.json
- Command line
-
hf download hf://harshee77/green-gap-tshirt-diffusion/args.json
-
curl -L -o args.json https://huggingface.co/harshee77/green-gap-tshirt-diffusion/resolve/main/args.json
1.74 kB
| { | |
| "pretrained_model_name_or_path": "runwayml/stable-diffusion-v1-5", | |
| "pretrained_vae_name_or_path": "stabilityai/sd-vae-ft-mse", | |
| "revision": null, | |
| "tokenizer_name": null, | |
| "instance_data_dir": "./green-gap-tshirt", | |
| "class_data_dir": "./class-tshirt", | |
| "instance_prompt": "a photo of man wearing a sks t-shirt", | |
| "class_prompt": "a photo of man wearing a t-shirt", | |
| "save_sample_prompt": null, | |
| "save_sample_negative_prompt": null, | |
| "n_save_sample": 4, | |
| "save_guidance_scale": 7.5, | |
| "save_infer_steps": 20, | |
| "pad_tokens": false, | |
| "with_prior_preservation": true, | |
| "prior_loss_weight": 1.0, | |
| "num_class_images": 300, | |
| "output_dir": "./output-models-shirt/", | |
| "seed": null, | |
| "resolution": 512, | |
| "center_crop": false, | |
| "train_text_encoder": true, | |
| "train_batch_size": 1, | |
| "sample_batch_size": 4, | |
| "num_train_epochs": 7, | |
| "max_train_steps": 2000, | |
| "gradient_accumulation_steps": 1, | |
| "gradient_checkpointing": true, | |
| "learning_rate": 1e-06, | |
| "scale_lr": false, | |
| "lr_scheduler": "constant", | |
| "lr_warmup_steps": 200, | |
| "use_8bit_adam": true, | |
| "adam_beta1": 0.9, | |
| "adam_beta2": 0.999, | |
| "adam_weight_decay": 0.01, | |
| "adam_epsilon": 1e-08, | |
| "max_grad_norm": 1.0, | |
| "push_to_hub": false, | |
| "hub_token": null, | |
| "hub_model_id": null, | |
| "logging_dir": "logs", | |
| "log_interval": 10, | |
| "save_interval": 500, | |
| "save_min_steps": 0, | |
| "mixed_precision": "fp16", | |
| "not_cache_latents": false, | |
| "hflip": false, | |
| "local_rank": -1, | |
| "concepts_list": [ | |
| { | |
| "instance_prompt": "a photo of man wearing a sks t-shirt", | |
| "class_prompt": "a photo of man wearing a t-shirt", | |
| "instance_data_dir": "./green-gap-tshirt", | |
| "class_data_dir": "./class-tshirt" | |
| } | |
| ], | |
| "read_prompts_from_txts": false | |
| } |