GaParmar / img2img-turbo

One-step image-to-image with Stable Diffusion turbo: sketch2image, day2night, and more
MIT License
1.46k stars 166 forks source link

Can not run train_cyclegan_turbo.py successfully! #86

Open wwzh2626 opened 1 week ago

wwzh2626 commented 1 week ago

OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like stabilityai/sd-turbo is not the path to a directory containing a file named tokenizer/config.json. Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.

At the same time, i find that tokenizer folder doesn't contain config.json. How can i solve it

GaParmar commented 1 week ago

I just tried running these lines of code to test it:

image

I was able to load the tokenizer without any errors. Could you perhaps try these two lines if you can load the tokenizer correctly?

-Gaurav

wwzh2626 commented 1 week ago

I am confused! I can run run the test code you gave in the picture, and then this bug disappears. But the next pre-trained file that needs to be loaded from huggingface will give an error again. Why can't I download it when I run .py directly, but I can download it in the command line?

cgliu2000 commented 5 days ago

I encountered the same problem, how did you solve it?