Русские видео

Сейчас в тренде

Иностранные видео




Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса ClipSaver.ru



Train a style Lora for SDXL with Kohya ss on Runpod

🎉 Welcome to a brand-new tutorial where we unlock the potential of generative AI technologies with SDXL and LORA styles! In this video, we delve deep into the world of AI generative technologies, guiding you step by step on how to train your very own LORA style using the kohya_ss tool and the RUNPOD cloud service 1. Go to https://www.runpod.io/ 2. if you don't have an account, create one and make a small deposit 3. Select Templates 4. Select Stable Diffusion Kohya_ss ComfyUI Ultimate 5. Click Deploy 6. Select 4090 5. Click Deploy/Continue/Deploy and wait 10 minutes, more or less, that machine is being created 6. Wait until "Container is ready" 7. Open Jupyter Interface and lanch terminal 8. Kill SD to free ram : fuser -k 3001/tcp (2 or 3 times) 9. Check GPU MEM of POD 10. You will need about 50 images, each with a resolution of 1024 x 1024 pixels. 11. Copy JSON in folder on Runpod 12. Now let's create three folders: "img," "log," and "model." 13. Inside the "img" folder, you should create a new folder named "30_name of the Lora." 14. Finally, copy your images into the newly created folder. 15. Tail -f Kohya_ss log 16. Open Kohya interface 17. Blip Caption your images (if you haven't) 18. Load JSON config on Kohya_ss interface 19. Copy img, model and log path 20. Name your Lora 21. Start Training 22. wait ~2 hrs 23. Download Lora or copy on google folder 24. Stop and terminate your pod 25. Have fun! JSON : { "LoRA_type": "Standard", "adaptive_noise_scale": 0, "additional_parameters": "", "block_alphas": "", "block_dims": "", "block_lr_zero_threshold": "", "bucket_no_upscale": true, "bucket_reso_steps": 64, "cache_latents": true, "cache_latents_to_disk": true, "caption_dropout_every_n_epochs": 0.0, "caption_dropout_rate": 0, "caption_extension": ".txt", "clip_skip": "1", "color_aug": false, "conv_alpha": 1, "conv_block_alphas": "", "conv_block_dims": "", "conv_dim": 1, "decompose_both": false, "dim_from_weights": false, "down_lr_weight": "", "enable_bucket": true, "epoch": 10, "factor": -1, "flip_aug": false, "full_bf16": false, "full_fp16": false, "gradient_accumulation_steps": 1, "gradient_checkpointing": true, "keep_tokens": "0", "learning_rate": 0.0009, "logging_dir": "/workspace/Lora/Yuko/log", "lora_network_weights": "", "lr_scheduler": "constant", "lr_scheduler_args": "", "lr_scheduler_num_cycles": "", "lr_scheduler_power": "", "lr_warmup": 0, "max_bucket_reso": 2048, "max_data_loader_n_workers": "0", "max_resolution": "1024,1024", "max_timestep": 1000, "max_token_length": "75", "max_train_epochs": "", "max_train_steps": "", "mem_eff_attn": false, "mid_lr_weight": "", "min_bucket_reso": 256, "min_snr_gamma": 0, "min_timestep": 0, "mixed_precision": "bf16", "model_list": "custom", "module_dropout": 0, "multires_noise_discount": 0, "multires_noise_iterations": 0, "network_alpha": 1, "network_dim": 256, "network_dropout": 0, "no_token_padding": false, "noise_offset": 0, "noise_offset_type": "Original", "num_cpu_threads_per_process": 2, "optimizer": "Adafactor", "optimizer_args": "scale_parameter=False relative_step=False warmup_init=False", "output_dir": "/workspace/Lora/Yuko/model", "output_name": "lastYuko", "persistent_data_loader_workers": false, "pretrained_model_name_or_path": "/workspace/stable-diffusion-webui/models/Stable-diffusion/sd_xl_base_1.0.safetensors", "prior_loss_weight": 1.0, "random_crop": false, "rank_dropout": 0, "reg_data_dir": "", "resume": "", "sample_every_n_epochs": 0, "sample_every_n_steps": 0, "sample_prompts": "", "sample_sampler": "euler_a", "save_every_n_epochs": 1, "save_every_n_steps": 0, "save_last_n_steps": 0, "save_last_n_steps_state": 0, "save_model_as": "safetensors", "save_precision": "bf16", "save_state": false, "scale_v_pred_loss_like_noise_pred": false, "scale_weight_norms": 0, "sdxl": true, "sdxl_cache_text_encoder_outputs": false, "sdxl_no_half_vae": true, "seed": "", "shuffle_caption": false, "stop_text_encoder_training": 0, "text_encoder_lr": 0.0009, "train_batch_size": 5, "train_data_dir": "/workspace/Lora/Yuko/img", "train_on_input": true, "training_comment": "", "unet_lr": 0.0009, "unit": 1, "up_lr_weight": "", "use_cp": false, "use_wandb": false, "v2": false, "v_parameterization": false, "v_pred_like_loss": 0, "vae_batch_size": 0, "wandb_api_key": "", "weighted_captions": false, "xformers": "xformers" }

Comments