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

LoRA Dreambooth Dependency Error #346

Open s0ulessb0nes opened 4 months ago

s0ulessb0nes commented 4 months ago

Error on installing dependencies for current Collab version of LoRA Dreambooth:

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. tf-keras 2.15.1 requires tensorflow<2.16,>=2.15, but you have tensorflow 2.16.1 which is incompatible. torchaudio 2.2.1+cu121 requires torch==2.2.1, but you have torch 2.1.0 which is incompatible. torchtext 0.17.1 requires torch==2.2.1, but you have torch 2.1.0 which is incompatible.

DEX-1101 commented 4 months ago

try change xformers to !pip install xformers==0.0.24 --no-deps

Macgiy commented 4 months ago

try change xformers to !pip install xformers==0.0.24 --no-deps

where should I put it? I tried both in requirements.txt and the main but it doesn't work

DEX-1101 commented 4 months ago

try change xformers to !pip install xformers==0.0.24 --no-deps

where should I put it? I tried both in requirements.txt and the main but it doesn't work

main or requirements should work, did you replaced the old one? or if still can't i have fork that worked, you might can try it : https://github.com/DEX-1101/kohya-trainer/blob/main/kohya_LoRA_trainer_XL_v1.ipynb