Closed rafstahelin closed 5 months ago
I just tested training a TI with sd1.5 using my test json file ./test/config/TI-AdamW8bit.json
and it ran. Can you test it? It should also work for you.
The namespace error appear to be something wrong with the latest training script of @kohya-ss part of his sd-scripts repo code base. I can't fix that one.
@rafstahelin
AttributeError: 'Namespace' object has no attribute 'disable_mmap_load_safetensors'
I'm only getting this error on the dev branch. Is that the version you're running? Switching to the current master or v24.1.4 seems to start TI training at least.
......
0 train images with repeating.
...
No data found. Please verify arguments / 画像がありません。引数指定を確認してください
That means your image folders aren't set up correctly.
Do your subfolders follow the naming scheme of repeats_word class
where "repeats" is a number?
And the path you're using for the image folder, named 10
, seems off.
E:\\studio Dropbox\\studio\\ai\\data\\styles\\style_baroque\\3training\\training_b4r0que\\10
The dev branch is using the new sd-scripts dev branch version of sd-scripts... so it must have been introduced as part of the new sd-scripts code that got added to it.
@bmaltais @b-fission OK, working!
I was missing the folder structure for the dataset with repeats_word class
. Thanks for that. I thought that was only for dreambooth.
This is one of my captions. Given that my class is architecture and my dataset folder runs 5_b4r0que architecture, is this caption correct, with the trigger. Here's an image:
b4r0que, a photo of architectural interior, grand hallway, classical architecture, intricate floor mosaic, arched doorways, domed ceilings, marble walls, ornate columns, recessed wall panels, decorative friezes, subdued natural lighting, long perspective view, symmetrical composition, historic building, high detail finish, elegance, opulence
Just not sure the class is being mentioned twice is a good thing. Or should I drop the trigger in the caption
Thanks
@bmaltais @b-fission And yes it is now working on master branch. Any chance you will merge dev as I was hoping to continue using the wandb log you recently added to dev
Regarding this error for TI training in the dev branch...
AttributeError: 'Namespace' object has no attribute 'disable_mmap_load_safetensors'
Uncommenting this line should fix it: https://github.com/kohya-ss/sd-scripts/blob/bfb352bc433326a77aca3124248331eb60c49e8c/sdxl_train_textual_inversion.py#L126
@b-fission will go this way until dev gets merged. thanks!
File "E:\kohya_ss\sd-scripts\library\sdxl_train_util.py", line 50, in load_target_model args.disable_mmap_load_safetensors, AttributeError: 'Namespace' object has no attribute 'disable_mmap_load_safetensors'
Deleting this line from sdxl_train_util.py allows the TI training to work.
Regarding this error for TI training in the dev branch...
AttributeError: 'Namespace' object has no attribute 'disable_mmap_load_safetensors'
Uncommenting this line should fix it: https://github.com/kohya-ss/sd-scripts/blob/bfb352bc433326a77aca3124248331eb60c49e8c/sdxl_train_textual_inversion.py#L126
This does nothing, as the line suggested is a comment line and is not read as script
You should report this to Konya in his as-scripts repo so he can fix it in his case.
Thanks @blakdeth19 - commenting out line 50 in sdxl_train_util.py worked for me in kohya_ss v24.1.6. TI training now working for me :-)
Uncommenting this line should fix it: https://github.com/kohya-ss/sd-scripts/blob/bfb352bc433326a77aca3124248331eb60c49e8c/sdxl_train_textual_inversion.py#L126
This does nothing, as the line suggested is a comment line and is not read as script
I was having same issue and UNcommenting this line so that it IS read fixed it for me.
Is there any indication that this module has been updated and is in working order? I have tried to use auto1111 and Forge, neither codes for embedding training work. Now here in Kohya, embedding training does not launch, with following error:
With SDXL I get this error very early on:
With base SD 1.5 I seem to get further on but get:
No data found. Please verify arguments / 画像がありません。引数指定を確認してください
Ideally, I'd like to train in SDXL
baroque-test_20240527-130133.JSON