Ayane22 commited on
Commit
e2d4691
·
1 Parent(s): 28deec3

Create rd

Browse files
Files changed (1) hide show
  1. rd +171 -0
rd ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Loading settings from /content/LoRA/config/config_file.toml...
2
+ /content/LoRA/config/config_file
3
+ prepare tokenizer
4
+ Downloading (…)olve/main/vocab.json: 100% 961k/961k [00:00<00:00, 1.13MB/s]
5
+ Downloading (…)olve/main/merges.txt: 100% 525k/525k [00:00<00:00, 823kB/s]
6
+ Downloading (…)cial_tokens_map.json: 100% 389/389 [00:00<00:00, 257kB/s]
7
+ Downloading (…)okenizer_config.json: 100% 905/905 [00:00<00:00, 399kB/s]
8
+ update token length: 225
9
+ Load dataset config from /content/LoRA/config/dataset_config.toml
10
+ prepare images.
11
+ found directory /content/LoRA/train_data contains 11 image files
12
+ 2750 train images with repeating.
13
+ 0 reg images.
14
+ no regularization images / 正則化画像が見つかりませんでした
15
+ [Dataset 0]
16
+ batch_size: 6
17
+ resolution: (512, 512)
18
+ enable_bucket: True
19
+ min_bucket_reso: 256
20
+ max_bucket_reso: 1024
21
+ bucket_reso_steps: 64
22
+ bucket_no_upscale: False
23
+
24
+ [Subset 0 of Dataset 0]
25
+ image_dir: "/content/LoRA/train_data"
26
+ image_count: 11
27
+ num_repeats: 250
28
+ shuffle_caption: True
29
+ keep_tokens: 0
30
+ caption_dropout_rate: 0
31
+ caption_dropout_every_n_epoches: 0
32
+ caption_tag_dropout_rate: 0
33
+ color_aug: False
34
+ flip_aug: False
35
+ face_crop_aug_range: None
36
+ random_crop: False
37
+ token_warmup_min: 1,
38
+ token_warmup_step: 0,
39
+ is_reg: False
40
+ class_tokens: mksks
41
+ caption_extension: .txt
42
+
43
+
44
+ [Dataset 0]
45
+ loading image sizes.
46
+ 100% 11/11 [00:00<00:00, 439.09it/s]
47
+ make buckets
48
+ number of images (including repeats) / 各bucketの画像枚数(繰り返し回数を含む)
49
+ bucket 0: resolution (384, 640), count: 250
50
+ bucket 1: resolution (512, 512), count: 1000
51
+ bucket 2: resolution (576, 448), count: 500
52
+ bucket 3: resolution (640, 384), count: 1000
53
+ mean ar error (without repeats): 0.0969292682863697
54
+ prepare accelerator
55
+ Using accelerator 0.15.0 or above.
56
+ loading model for process 0/1
57
+ load StableDiffusion checkpoint
58
+ loading u-net: <All keys matched successfully>
59
+ loading vae: <All keys matched successfully>
60
+ Downloading (…)lve/main/config.json: 100% 4.52k/4.52k [00:00<00:00, 3.13MB/s]
61
+ Downloading pytorch_model.bin: 100% 1.71G/1.71G [00:23<00:00, 73.3MB/s]
62
+ loading text encoder: <All keys matched successfully>
63
+ Replace CrossAttention.forward to use xformers
64
+ [Dataset 0]
65
+ caching latents.
66
+ 100% 5/5 [00:13<00:00, 2.62s/it]
67
+ import network module: lycoris.kohya
68
+ Using rank adaptation algo: lora
69
+ Use Dropout value: 0.0
70
+ Create LyCORIS Module
71
+ create LyCORIS for Text Encoder: 72 modules.
72
+ Create LyCORIS Module
73
+ create LyCORIS for U-Net: 278 modules.
74
+ enable LyCORIS for text encoder
75
+ enable LyCORIS for U-Net
76
+ prepare optimizer, data loader etc.
77
+ Deprecated: use prepare_optimizer_params(text_encoder_lr, unet_lr, learning_rate) instead of prepare_optimizer_params(text_encoder_lr, unet_lr)
78
+ CUDA SETUP: CUDA runtime path found: /usr/local/cuda-11.8/targets/x86_64-linux/lib/libcudart.so
79
+ CUDA SETUP: Highest compute capability among GPUs detected: 7.5
80
+ CUDA SETUP: Detected CUDA version 118
81
+ CUDA SETUP: Loading binary /usr/local/lib/python3.10/dist-packages/bitsandbytes/libbitsandbytes_cuda118.so...
82
+ use 8-bit AdamW optimizer | {}
83
+ override steps. steps for 2 epochs is / 指定エポックまでのステップ数: 920
84
+ running training / 学習開始
85
+ num train images * repeats / 学習画像の数×繰り返し回数: 2750
86
+ num reg images / 正則化画像の数: 0
87
+ num batches per epoch / 1epochのバッチ数: 460
88
+ num epochs / epoch数: 2
89
+ batch size per device / バッチサイズ: 6
90
+ gradient accumulation steps / 勾配を合計するステップ数 = 1
91
+ total optimization steps / 学習ステップ数: 920
92
+ steps: 0% 0/920 [00:00<?, ?it/s]epoch 1/2
93
+ steps: 50% 460/920 [11:32<11:32, 1.51s/it, loss=0.0465]saving checkpoint: /content/drive/MyDrive/LoRA/output/last-000001.safetensors
94
+ generating sample images at step / サンプル画像生成 ステップ: 460
95
+ prompt: (masterpiece, best quality, highres, illustration, perfect anatomy), 1girl, solo, 40 years old mature female, sharp mature face, lipstick, red lips, beautiful pupil, sexy blue eyes:1.2, highlights in eyes:1.4, short hair, parted bangs, blonde hair, glasses, long nose, glamorous proportion, business suit
96
+ negative_prompt: lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry
97
+ height: 768
98
+ width: 512
99
+ sample_steps: 28
100
+ scale: 7.0
101
+
102
+ 0% 0/28 [00:00<?, ?it/s]
103
+ 4% 1/28 [00:00<00:15, 1.73it/s]
104
+ 7% 2/28 [00:00<00:11, 2.35it/s]
105
+ 11% 3/28 [00:01<00:09, 2.63it/s]
106
+ 14% 4/28 [00:01<00:08, 2.77it/s]
107
+ 18% 5/28 [00:01<00:07, 2.88it/s]
108
+ 21% 6/28 [00:02<00:07, 2.95it/s]
109
+ 25% 7/28 [00:02<00:07, 2.97it/s]
110
+ 29% 8/28 [00:02<00:06, 3.00it/s]
111
+ 32% 9/28 [00:03<00:06, 3.02it/s]
112
+ 36% 10/28 [00:03<00:05, 3.03it/s]
113
+ 39% 11/28 [00:03<00:05, 3.04it/s]
114
+ 43% 12/28 [00:04<00:05, 3.05it/s]
115
+ 46% 13/28 [00:04<00:04, 3.05it/s]
116
+ 50% 14/28 [00:04<00:04, 3.05it/s]
117
+ 54% 15/28 [00:05<00:04, 3.05it/s]
118
+ 57% 16/28 [00:05<00:03, 3.05it/s]
119
+ 61% 17/28 [00:05<00:03, 3.05it/s]
120
+ 64% 18/28 [00:06<00:03, 3.06it/s]
121
+ 68% 19/28 [00:06<00:02, 3.05it/s]
122
+ 71% 20/28 [00:06<00:02, 3.05it/s]
123
+ 75% 21/28 [00:07<00:02, 3.05it/s]
124
+ 79% 22/28 [00:07<00:01, 3.05it/s]
125
+ 82% 23/28 [00:07<00:01, 3.05it/s]
126
+ 86% 24/28 [00:08<00:01, 3.05it/s]
127
+ 89% 25/28 [00:08<00:00, 3.05it/s]
128
+ 93% 26/28 [00:08<00:00, 3.06it/s]
129
+ 96% 27/28 [00:09<00:00, 3.06it/s]
130
+ 100% 28/28 [00:09<00:00, 2.98it/s]
131
+ epoch 2/2
132
+ steps: 100% 920/920 [23:20<00:00, 1.52s/it, loss=0.0274]generating sample images at step / サンプル画像生成 ステップ: 920
133
+ prompt: (masterpiece, best quality, highres, illustration, perfect anatomy), 1girl, solo, 40 years old mature female, sharp mature face, lipstick, red lips, beautiful pupil, sexy blue eyes:1.2, highlights in eyes:1.4, short hair, parted bangs, blonde hair, glasses, long nose, glamorous proportion, business suit
134
+ negative_prompt: lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry
135
+ height: 768
136
+ width: 512
137
+ sample_steps: 28
138
+ scale: 7.0
139
+
140
+ 0% 0/28 [00:00<?, ?it/s]
141
+ 4% 1/28 [00:00<00:08, 3.11it/s]
142
+ 7% 2/28 [00:00<00:08, 3.10it/s]
143
+ 11% 3/28 [00:00<00:08, 3.01it/s]
144
+ 14% 4/28 [00:01<00:07, 3.05it/s]
145
+ 18% 5/28 [00:01<00:07, 3.07it/s]
146
+ 21% 6/28 [00:01<00:07, 3.04it/s]
147
+ 25% 7/28 [00:02<00:06, 3.04it/s]
148
+ 29% 8/28 [00:02<00:06, 3.06it/s]
149
+ 32% 9/28 [00:02<00:06, 3.05it/s]
150
+ 36% 10/28 [00:03<00:05, 3.05it/s]
151
+ 39% 11/28 [00:03<00:05, 3.06it/s]
152
+ 43% 12/28 [00:03<00:05, 3.06it/s]
153
+ 46% 13/28 [00:04<00:04, 3.06it/s]
154
+ 50% 14/28 [00:04<00:04, 3.07it/s]
155
+ 54% 15/28 [00:04<00:04, 3.06it/s]
156
+ 57% 16/28 [00:05<00:03, 3.06it/s]
157
+ 61% 17/28 [00:05<00:03, 3.06it/s]
158
+ 64% 18/28 [00:05<00:03, 3.06it/s]
159
+ 68% 19/28 [00:06<00:02, 3.05it/s]
160
+ 71% 20/28 [00:06<00:02, 3.06it/s]
161
+ 75% 21/28 [00:06<00:02, 3.06it/s]
162
+ 79% 22/28 [00:07<00:01, 3.05it/s]
163
+ 82% 23/28 [00:07<00:01, 3.05it/s]
164
+ 86% 24/28 [00:07<00:01, 3.05it/s]
165
+ 89% 25/28 [00:08<00:00, 3.05it/s]
166
+ 93% 26/28 [00:08<00:00, 3.05it/s]
167
+ 96% 27/28 [00:08<00:00, 3.05it/s]
168
+ 100% 28/28 [00:09<00:00, 3.05it/s]
169
+ save trained model to /content/drive/MyDrive/LoRA/output/last.safetensors
170
+ model saved.
171
+ steps: 100% 920/920 [23:31<00:00, 1.53s/it, loss=0.0274]