hollowstrawberry / kohya-colab

Accessible Google Colab notebooks for Stable Diffusion Lora training, based on the work of kohya-ss and Linaqruf
GNU General Public License v3.0
599 stars 86 forks source link

What can i do with this error? #143

Closed DarkGdz closed 5 months ago

DarkGdz commented 5 months ago

hi, when i start to training with customs datasets i get this error at the start: Traceback (most recent call last): File "/content/kohya-trainer/train_network_wrapper.py", line 9, in train(args) File "/content/kohya-trainer/train_network.py", line 134, in train blueprint = blueprint_generator.generate(user_config, args, tokenizer=tokenizer) File "/content/kohya-trainer/library/config_util.py", line 306, in generate sanitized_user_config = self.sanitizer.sanitize_user_config(user_config) File "/content/kohya-trainer/library/config_util.py", line 270, in sanitize_user_config return self.user_config_validator(user_config) File "/usr/local/lib/python3.10/dist-packages/voluptuous/schema_builder.py", line 272, in call return self._compiled([], data) File "/usr/local/lib/python3.10/dist-packages/voluptuous/schema_builder.py", line 595, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.10/dist-packages/voluptuous/schema_builder.py", line 433, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: expected int for dictionary value @ data['datasets'][0]['subsets'][1]['num_repeats']

hollowstrawberry commented 5 months ago

You probably made a mistake when writing num_repeats = . It says you didn't use an integer number.

DarkGdz commented 5 months ago

in the reg folder i used num_repeats = 0.062 because is 5200 images and because in the dataset folder i have 32 images. I need the reg folder to pick randomly only 32 photo. maybe you know wat can i do to fix this problem? please!!

hollowstrawberry commented 5 months ago

You can't do less than 1 repeat, you'd need to make another folder with just 30 images if that's what you want.

DarkGdz commented 5 months ago

ah ok thank you so much