Skip to content

[Bug]: calculate_loss.py error #1168

@tuhaybey

Description

@tuhaybey

What happened?

Running calculate_loss.py generates an error.

It appears that modules/module/GenerateLossesModel.py needs to replace "StableDiffusionFineTuneDataLoader" with "StableDiffusionFineTuneVaeDataLoader" in lines 3 and 25. At least making that change- adding the "Vae"- made it work for me.

What did you expect would happen?

It should run :)

Relevant log output

((venv) ) desk@LocalAI:/data/OneTrainer$ python scripts/calculate_loss.py -h
Traceback (most recent call last):
  File "/data/OneTrainer/scripts/calculate_loss.py", line 7, in <module>
    from modules.module.GenerateLossesModel import GenerateLossesModel
  File "/data/OneTrainer/modules/module/GenerateLossesModel.py", line 3, in <module>
    from modules.dataLoader import StableDiffusionFineTuneDataLoader
ImportError: cannot import name 'StableDiffusionFineTuneDataLoader' from 'modules.dataLoader' (unknown location)

Generate and upload debug_report.log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions