Nerogar / OneTrainer

OneTrainer is a one-stop solution for all your stable diffusion training needs.
GNU Affero General Public License v3.0
1.34k stars 110 forks source link

Dev SD3 LoRA train bug #341

Closed OliviaOliveiira closed 2 weeks ago

OliviaOliveiira commented 2 weeks ago

What happened?

got the dev branch of onetrainer and tried to start a LoRA training

What did you expect would happen?

A lora

Relevant log output

File "C:\huita_test\OneTrainer\modules\ui\TrainUI.py", line 521, in __training_thread_function
    trainer.start()
  File "C:\huita_test\OneTrainer\modules\trainer\GenericTrainer.py", line 118, in start
    self.model = self.model_loader.load(
AttributeError: 'NoneType' object has no attribute 'load'

Output of pip freeze

No response

AlUlkesh commented 2 weeks ago

I'm getting the same error.

Here's my pip freeze:

absl-py==2.1.0
accelerate==0.30.1
aiohttp==3.9.5
aiosignal==1.3.1
antlr4-python3-runtime==4.9.3
async-timeout==4.0.3
attrs==23.2.0
bitsandbytes==0.43.1
certifi==2024.6.2
charset-normalizer==3.3.2
cloudpickle==3.0.0
colorama==0.4.6
coloredlogs==15.0.1
customtkinter==5.2.2
dadaptation==3.2
darkdetect==0.8.0
-e git+https://github.com/huggingface/diffusers.git@614d0c64e96b37740e14bb5c2eca8f8a2ecdf23e#egg=diffusers
filelock==3.15.1
flatbuffers==24.3.25
frozenlist==1.4.1
fsspec==2024.6.0
ftfy==6.2.0
grpcio==1.64.1
huggingface-hub==0.23.3
humanfriendly==10.0
idna==3.7
importlib_metadata==7.1.0
intel-openmp==2021.4.0
invisible-watermark==0.2.0
Jinja2==3.1.4
lightning-utilities==0.11.2
lion-pytorch==0.1.4
Markdown==3.6
markdown-it-py==3.0.0
MarkupSafe==2.1.5
mdurl==0.1.2
-e git+https://github.com/Nerogar/mgds.git@0450ce4156931ceab60dcc017d4eed5a6e122f29#egg=mgds
mkl==2021.4.0
mpmath==1.3.0
multidict==6.0.5
networkx==3.3
numpy==1.26.4
omegaconf==2.3.0
onnxruntime-gpu==1.18.0
open-clip-torch==2.24.0
opencv-python==4.9.0.80
packaging==24.1
pillow==10.3.0
platformdirs==4.2.2
pooch==1.8.1
prodigyopt==1.0
protobuf==5.27.1
psutil==5.9.8
Pygments==2.18.0
pynvml==11.5.0
pyreadline3==3.4.1
pytorch-lightning==2.2.5
PyWavelets==1.6.0
PyYAML==6.0.1
regex==2024.5.15
requests==2.32.3
rich==13.7.1
safetensors==0.4.3
scalene==1.5.41
schedulefree==1.2.5
sentencepiece==0.2.0
six==1.16.0
sympy==1.12.1
tbb==2021.12.0
tensorboard==2.16.2
tensorboard-data-server==0.7.2
timm==1.0.3
tokenizers==0.19.1
torch==2.3.0+cu118
torchmetrics==1.4.0.post0
torchvision==0.18.0+cu118
tqdm==4.66.4
transformers==4.41.1
typing_extensions==4.12.2
urllib3==2.2.1
wcwidth==0.2.13
Werkzeug==3.0.3
xformers==0.0.26.post1+cu118
yarl==1.9.4
zipp==3.19.2
OliviaOliveiira commented 2 weeks ago

https://github.com/kohya-ss/sd-scripts/commit/e5268286bf90ddcc53ad1deb31aba857cfa967d5 kohya sd scripts added a training script!

Farquaad56 commented 2 weeks ago

same error

mx commented 2 weeks ago

It's a dev branch, not meant for public consumption.

OliviaOliveiira commented 2 weeks ago

It's a dev branch, not meant for public consumption.

Obviously, it was just a bug report

mx commented 2 weeks ago

Obviously, it was just a bug report

It's not a bug. This is an in-progress working branch that has no guarantee to even launch successfully.