Stability-AI / StableCascade

Official Code for Stable Cascade
MIT License
6.44k stars 518 forks source link

ModuleNotFoundError: No module named 'gdf' #121

Open vardhanam opened 3 months ago

vardhanam commented 3 months ago

python3 train/train_c_lora.py configs/training/finetune_c_3b_lora.yaml

running the above is giving me an error

  File "/home/vardh/fine_tune_stable_cascade/StableCascade/train/train_c_lora.py", line 12, in <module>
    from gdf import GDF, EpsilonTarget, CosineSchedule
ModuleNotFoundError: No module named 'gdf'

I can't find this module anywhere on the web. Please help

SirTrippsalot commented 2 months ago

pip install git+https://github.com/WARP-AI/gdf -U

geroldmeisinger commented 4 weeks ago

see here https://github.com/Stability-AI/StableCascade/issues/10

tikhonlavrev commented 4 weeks ago

Adding sys.path.append(os.getcwd()) seems work to me.

So the module import should looks like

sys.path.append(os.getcwd())
from gdf import GDF, EpsilonTarget, CosineSchedule