Doubiiu / DynamiCrafter

[ECCV 2024] DynamiCrafter: Animating Open-domain Images with Video Diffusion Priors
Apache License 2.0
2.09k stars 165 forks source link

FileExistsError: [WinError 183] Cannot create a file because it already exists: './dynamicrafter_1024_v1/' #14

Closed protector131090 closed 3 months ago

protector131090 commented 5 months ago

Please help! if i download the file i get the rror. If o dont and let the code download its taking 5 hours! How do i modify the code so it wont redownload the model?! Traceback (most recent call last): File "gradio_app.py", line 170, in dynamicrafter_iface = dynamicrafter_demo(result_dir, args.res) File "gradio_app.py", line 47, in dynamicrafter_demo image2video = Image2Video(result_dir, resolution=resolution) File "S:\DynamiCrafter\scripts\gradio\i2v_test.py", line 16, in init self.download_model() File "S:\DynamiCrafter\scripts\gradio\i2v_test.py", line 97, in downloadmodel os.makedirs('./dynamicrafter'+str(self.resolution[1])+'_v1/') File "S:\DynamiCrafter\lib\os.py", line 223, in makedirs mkdir(name, mode) FileExistsError: [WinError 183] Cannot create a file because it already exists: './dynamicrafter_1024_v1/'

Doubiiu commented 5 months ago

Hi I have updated the i2v_test.py file to fix the corresponding bug. Sorry for the incovenience caused. Now It will not redownload the model if it already exists.