Instructions to use kraina/map_diffusion_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kraina/map_diffusion_lora 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("kraina/map_diffusion_lora") 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 logs/text2image-fine-tune/1691260057.6730173/hparams.yml from kraina/map_diffusion_lora: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/kraina/map_diffusion_lora/resolve/3f6bf115b6c1cc3ae7b3dff39a142850362323a3/logs/text2image-fine-tune/1691260057.6730173/hparams.yml
- Command line
-
hf download hf://kraina/map_diffusion_lora@3f6bf115b6c1cc3ae7b3dff39a142850362323a3/logs/text2image-fine-tune/1691260057.6730173/hparams.yml
-
curl -L -o hparams.yml https://huggingface.co/kraina/map_diffusion_lora/resolve/3f6bf115b6c1cc3ae7b3dff39a142850362323a3/logs/text2image-fine-tune/1691260057.6730173/hparams.yml
1.12 kB
| adam_beta1: 0.9 | |
| adam_beta2: 0.999 | |
| adam_epsilon: 1.0e-08 | |
| adam_weight_decay: 0.01 | |
| allow_tf32: false | |
| cache_dir: null | |
| caption_column: caption | |
| center_crop: true | |
| checkpointing_steps: 500 | |
| checkpoints_total_limit: null | |
| dataloader_num_workers: 8 | |
| dataset_config_name: null | |
| dataset_name: mprzymus/text2tile_large | |
| enable_xformers_memory_efficient_attention: false | |
| gradient_accumulation_steps: 4 | |
| gradient_checkpointing: false | |
| hub_model_id: mprzymus/map_diffusion_lora | |
| hub_token: null | |
| image_column: image | |
| learning_rate: 0.0001 | |
| local_rank: -1 | |
| logging_dir: logs | |
| lr_scheduler: cosine | |
| lr_warmup_steps: 0 | |
| max_grad_norm: 1.0 | |
| max_train_samples: null | |
| max_train_steps: 15000 | |
| mixed_precision: null | |
| noise_offset: 0 | |
| num_train_epochs: 1 | |
| num_validation_images: 4 | |
| output_dir: model_out | |
| prediction_type: null | |
| pretrained_model_name_or_path: runwayml/stable-diffusion-v1-5 | |
| push_to_hub: true | |
| random_flip: true | |
| rank: 4 | |
| report_to: tensorboard | |
| resolution: 512 | |
| resume_from_checkpoint: null | |
| revision: null | |
| scale_lr: false | |
| seed: 1337 | |
| snr_gamma: null | |
| train_batch_size: 1 | |
| train_data_dir: null | |
| use_8bit_adam: false | |
| validation_epochs: 1 | |
| validation_prompt: null | |