-
Notifications
You must be signed in to change notification settings - Fork 306
running cell 5.2. Dataset Config error: 'class_token' is not defined #198
Comments
I also encountered this problem that, |
I'm getting the same errors. It seems to be caused by having an empty 'reg_data_dir' value ( Also omitting the 'activation_word' in step '5.2.' or entering only one word instead of two (separated by a space or comma) results in the "name 'class_token' is not defined" error above. This makes 'activation_word' not optional, as the description implies. Looks like Luckily you can still just use v14 in the meantime. |
in my case I had inputted the 'reg_data_dir' in 3.1 and 'activation_word' in 5.2. I think the problem is the 'class_token' issue. Can you tell me where I can input the 'class_token' ? If not, the code should be modified so that we can define 'class_token'. |
@therockwin1 I haven't actually looked that deep into it, but it seems the 'instance_token' and the 'class_token' inputs from earlier versions were merged into one – the 'activation_word'. However, the now internal 'class_token' variable is only set properly when you enter a two word value as the 'activation_word', separated with a space or a comma " That means for the 'activation_word' you need something like "instance class" or "instance,class", to not have it error on line 85 of the cell ( |
@user58823 I have just tried to input a 2 words 'activation_word', and it worked! Thank you! |
Thank you, it worked |
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ in <cell line: 129>:130 │
│ in process_folder_recursively:65 │
│ in get_class_token_from_folder_name:85 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
NameError: name 'class_token' is not defined
================
I am using Kohya LoRA Dreambooth v15.0.0, everything was fine until I came to "5.2. Dataset Config", the error as above. where should I input the class_token, which cell is for class token can somebody tell me please?
The text was updated successfully, but these errors were encountered: