Linaqruf / kohya-trainer

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

Can't download custom model (Google Colab) #275

Open TaciteOFF opened 1 year ago

TaciteOFF commented 1 year ago

Trying to download a model I uploaded in private on Hugginface,

I get this after executing the cell "Download Custom Model" :

[Errno 2] No such file or directory: '{root_dir}'
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
[<ipython-input-3-be2b401c4818>](https://o4p24kmsy6f-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230808-060203-RC00_554716267#) in <cell line: 10>()
      8 #@markdown ### Custom model
      9 modelUrl = "https://huggingface.co/XXXXXX.safetensors" #@param {'type': 'string'}
---> 10 dst = str(root_dir)+"/pre_trained_model"
     11 
     12 if not os.path.exists(dst):

NameError: name 'root_dir' is not defined

(I hid the full model URL)

Eden-Luminar commented 1 year ago

It is your private model or someone else?