Closed art-phony closed 1 year ago
I took few samples OK/NG filenames. It seems Linux's limitation of "filenames must be 255 bytes or less".
OK filenames (nums of chars)
25-headphones cat ear headphones headset earmuffs 1girl hair ornament long hair solo choker shirt hair between eyes short sleeves robot ears headphones around neck hairclip black shirt closed mouth purple eyes.jpg (213)
26-1girl solo hair ornament long hair headphones bangs cat ear headphones looking at viewer simple background hair between eyes eyebrows visible through hair fake animal ears virtual youtuber hairclip animal ears green hair.jpg (227)
27-1girl long hair solo headphones headset choker hair ornament short sleeves black shirt hairclip blue eyes cat ear headphones shirt upper body bangs looking at viewer.jpg (172)
28-headphones 1girl cat ear headphones long hair hair ornament solo choker closed eyes headset shirt open mouth bangs animal ears facing viewer hairclip short sleeves.jpg (170)
29-1girl solo hair ornament cross x hair ornament collarbone green background looking at viewer bangs choker long hair hairclip tattoo portrait hat open mouth cross hair ornament.jpg (182)
30-headphones 1girl cat ear headphones choker long hair headset solo hair ornament shirt blue eyes earmuffs open mouth black shirt silver hair star symbol short sleeves animal ears hair between eyes black choker cat ears facepaint fake animal ears.jpg (251)
31-plaid long hair plaid skirt headphones 1girl solo very long hair bag skirt building skyscraper.jpg (101)
NG filenames
28-choker headphones blue eyes solo 1girl blurry blurry background headset long hair black choker depth of field heart choker collarbone bangs blue hair earmuffs cardigan long sleeves cat ear headphones open clothes jacket looking at viewer open mouth facial mark tattoo.jpg (274)
20-headphones cat ear headphones 1girl headset choker fake animal ears blue eyes long hair open mouth solo blurry animal ears hair between eyes blurry background shirt black shirt collarbone outstretched arm cat ears earmuffs necklace short sleeves depth of field hair ornament silver hair android.jpg (301)
28-headphones 1girl hair ornament long hair solo cat ear headphones black shirt blue hair open mouth headset curtains blue eyes cross hair between eyes shirt upper body necklace choker vertical stripes hairclip striped short sleeves looking at viewer window.jpg (261)
28-headphones 1girl cat ear headphones headset solo closed eyes long hair hair ornament open mouth cat ears gloves shirt animal ears simple background short sleeves white background choker cross fake animal ears collarbone silver hair necklace bangs white hair earmuffs black shirt.jpg (285)
32-headphones cat ear headphones 1girl headset long hair red background hair ornament red sky solo hair between eyes headphones around neck choker claw pose smile hairclip silver hair very long hair looking at viewer earmuffs hands up cat ears upper body shirt.jpg (265)
I found that setting the variable args.save_class_txt
on L500 of train_dreambooth.py to True
will solve this problem.
However, I am not sure how to set the args.save_class_txt
variable to True
.
Note: using concepts_list.json won't solve this problem.
This was fixed recently. Your version is about 20 commits behind.
Thank you for your comment. As you mentioned, somehow I forgot to update WebUI itself. But after updated WebUI to latest version (44c46f), still same error occurs. I believe this error is related to sd_dreambooth_extension script itself, not WebUI related.
FWIW, I'm removing the args.save_class bit entirely. I thought it'd be neat to just have the class images with the names in the filename, but there's a very good reason why we just write them to text, and this is why.
This will be fixed entirely once I merge the forthcoming v21 branch.
This is now resolved.
Kindly read this ENTIRE form and fill it out with the requested information. It may seem tedious, but it's even more tedious asking basic questions to ensure I'm not trying to troubleshoot a bug I've already fixed. Help me help you, answer all the questions and follow the steps below before posting.
Please find the following lines in the console and paste them below. If you do not provide this information, your issue will be automatically closed.
Have you read the Readme? Yes
Have you completely restarted the stable-diffusion-webUI, not just reloaded the UI? Yes
Have you updated Dreambooth to the latest revision? Yes
Have you updated the Stable-Diffusion-WebUI to the latest version? Yes
No, really. Please save us both some trouble and update the SD-WebUI and Extension and restart before posting this. Reply 'OK' Below to acknowledge that you did this. OK
Describe the bug
In the initial stage of starting Dreambooth training, an error occurs in the part where the class image is generated, saying "Exception training model: [Errno 36] File name too long". As a result, Dreambooth training cannot be started.
Provide logs
If a crash has occurred, please provide the entire stack trace from the log, including the last few log messages before the crash occurred.
Environment
This problem confirmed in A100-80G and A6000.
Screenshots/Config If the issue is specific to an error while training, please provide a screenshot of training parameters or the db_config.json file from /models/dreambooth/MODELNAME/db_config.json