Linaqruf / kohya-trainer

Adapted from https://note.com/kohya_ss/n/nbf7ce8d80f29 for easier cloning
Apache License 2.0
1.82k stars 296 forks source link

kohya-LoRA-trainer-XL pillow and torch error #347

Open Copynoa opened 4 months ago

Copynoa commented 4 months ago

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. imageio 2.31.6 requires pillow<10.1.0,>=8.3.2, but you have pillow 10.2.0 which is incompatible. torchvision 0.17.1+cu121 requires torch==2.2.1, but you have torch 2.1.0 which is incompatible.

ValueError: Could not find the operator torchvision::nms. Please make sure you have already registered the operator and (if registered from C++) loaded it via torch.ops.load_library.

kybercore commented 4 months ago

Same dependency issue here

DEX-1101 commented 4 months ago

replace xformers code to !pip install -q xformers==0.0.26.dev767

Copynoa commented 4 months ago

replace xformers code to !pip install -q xformers==0.0.26.dev767

Thank you so much,it works!

joneschunghk commented 3 months ago

ERROR: Could not find a version that satisfies the requirement xformers==0.0.26.dev767 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.16rc424, 0.0.16rc425, 0.0.16, 0.0.17rc481, 0.0.17rc482, 0.0.17, 0.0.18, 0.0.19, 0.0.20, 0.0.21, 0.0.22, 0.0.22.post7, 0.0.23, 0.0.23.post1, 0.0.24, 0.0.25, 0.0.26.dev768, 0.0.26.dev769) ERROR: No matching distribution found for xformers==0.0.26.dev767

It has an error but can still be trained

DEX-1101 commented 3 months ago

ERROR: Could not find a version that satisfies the requirement xformers==0.0.26.dev767 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.16rc424, 0.0.16rc425, 0.0.16, 0.0.17rc481, 0.0.17rc482, 0.0.17, 0.0.18, 0.0.19, 0.0.20, 0.0.21, 0.0.22, 0.0.22.post7, 0.0.23, 0.0.23.post1, 0.0.24, 0.0.25, 0.0.26.dev768, 0.0.26.dev769) ERROR: No matching distribution found for xformers==0.0.26.dev767

It has an error but can still be trained

change to xformers==0.0.26.dev769 , somehow they removed the .dev767 version