ModuleNotFoundError: No module named 'third_party'
PoulamiSM opened this issue · comments
While trying to run maskcut/demo.py, this error is repeatedly encountered:
ModuleNotFoundError: No module named 'third_party'
The git submodules have been all updated, still the error persists.
This error is also encountered in the Colab notebook for MaskCut.
Any suggestions to fix the issue?
Hi, I have the same error as you, and I also have the same error in the Colab notebook.
I just fixed it by copying the folder "third_party" from the Colab notebook to my local CutLER folder, as I noticed the folder "TokenCut" inside it was actually empty. This solved the error for me, however I got a different one.
Hey, you may want to follow our INSTALL.md to prepare the necessary environment and git clone all necessary packages. The third party folder is empty because you may didn't use the --recursive argument when cloning our codebase:
git clone --recursive git@github.com:facebookresearch/CutLER.git
This command will automatically download all the necessary third-party codes alongside the main repository.