Sxela/DiscoDiffusion-Warp

Define optical flow functions Cell issue / [Errno 2] No such file or directory & No module named 'utils'

ThroughIris opened this issue · 1 comments

I love the idea behind this built, thanks for sharing.

I'm having trouble with "Define optical flow functions for Video input animation mode only"

First error was
[Errno 2] No such file or directory: '/content/RAFT/core'

So I changed it to make sure it found the folder with root_dir ='/content/drive/MyDrive/AI/Disco_Diffusion'

Then I get a new error:

/content/drive/MyDrive/AI/Disco_Diffusion/RAFT/core
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-45-c71df2f6329e>](https://localhost:8080/#) in <module>
     10   get_ipython().run_line_magic('cd', '{path}')
     11 
---> 12   from utils.utils import InputPadder
     13   from raft import RAFT
     14   # from utils import flow_viz

ModuleNotFoundError: No module named 'utils'

This No module named 'utils' is dumbfounding me, I see a utils folder but don’t how to fix this. I tried reinstalling, tried subbing in code from "Disco Diffusion v5.61" but had no luck. Any thoughts, I would really acpprieactee it. Thanks!

I think I figured it out. It wasn't running because it was referencing another verison of Disco Diffusion on my Google drive. I think (not sure) this verison names or references things differently than the normal "Disco Diffusion v5.61" I was using. So I just re-named my Disco Diffusion folder in Google drive so it wouldn't reference it anymore. Then reinstalled it and it ran fine.
You could also delelte other verisons to save space or archive them, but re-namimg worked fine for me. I also plan to re-name it back when using that other verison again.