facebookresearch / CutLER

Code release for "Cut and Learn for Unsupervised Object Detection and Instance Segmentation" and "VideoCutLER: Surprisingly Simple Unsupervised Video Instance Segmentation"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

commented

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.