Closed xddun closed 5 months ago
--sample_prompts="/workspace/kohya_ss/sd-scripts/prompt.txt":
--train_data_dir="/workspace/yifei/"
When passing in a train data dir using the command line, SD-Scripts expect a specfic folder structure. Specifically, the images and captions have to be in a subfolder with a specific naming format.
You will need to move your images and prompts to a subfolder in this format: "numofrepeats_subject class", so assuming you want 5 repeats, would probably be "5_yifei woman"
So the folder structure should be /workspace/yifei/5_yifei woman, with the arguement --train_data_dir="/workspace/yifei/"
Nice answer, thank you!
error is:
0it [00:00, ?it/s] INFO make buckets train_util.py:859 WARNING min_bucket_reso and max_bucket_reso are ignored if bucket_no_upscale is set, because bucket reso is defined by image train_util.py:876 size automatically / bucket_no_upscaleが指定された場合は、bucketの解像度は画像サイズから自動計算されるため、min_bucket_resoとmax_bucket_r esoは無視されます INFO number of images (including repeats) / 各bucketの画像枚数(繰り返し回数を含む) train_util.py:905 /usr/local/lib/python3.10/dist-packages/numpy/core/fromnumeric.py:3504: RuntimeWarning: Mean of empty slice. return _methods._mean(a, axis=axis, dtype=dtype, /usr/local/lib/python3.10/dist-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in scalar divide ret = ret.dtype.type(ret / rcount) INFO mean ar error (without repeats): nan train_util.py:915 ERROR No data found. Please verify arguments (train_data_dir must be the parent of folders with images) / train_network.py:212 画像がありません。引数指定を確認してください(train_data_dirには画像があるフォルダではなく、画像があるフォルダの 親フォルダを指定する必要があります)
My instruction is:
Path /workspace/yifei/ :
There are 23 images (each with width and height greater than 1024), and their corresponding .txt files are also here, generated by blip2.
I don't understand what's wrong, this is all log: