Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebook not working #5

Closed
FrancescoSaverioZuppichini opened this issue Jan 27, 2023 · 5 comments
Closed

Notebook not working #5

FrancescoSaverioZuppichini opened this issue Jan 27, 2023 · 5 comments

Comments

@FrancescoSaverioZuppichini

Running the notebook results in missing module colormap, installing it resulting in missing module easydev, after installing it I got ImportError: cannot import name 'random_color' from 'colormap' (/usr/local/lib/python3.8/dist-packages/colormap/__init__.py)

I am wondering how you run it, looking at the torch version it looks like you may have run it some months ago.

Thank you for the help

Cheers,

Fra

@FrancescoSaverioZuppichini FrancescoSaverioZuppichini changed the title Not working Notebook not working Jan 27, 2023
@frank-xwang
Copy link
Collaborator

Hi Fra,

I appreciate your interest in our work. I wanted to follow up on your issue with running the MaskCut demo. I just directly tested the demo on CoLab, and it seems to be working fine. Are you currently running the demo notebook on your local machine? If so, please ensure that the MaskCut demo notebook is located within the CutLER/maskcut/ directory. The colormap is imported from maskcut/colormap.py. You may need to uninstall the colormap package you installed first.

Please let me know if this resolves the issue you were experiencing.

Best,
Xudong

@frank-xwang frank-xwang mentioned this issue Jan 27, 2023
@FrancescoSaverioZuppichini
Copy link
Author

Weird, I've tried on collab - maybe a lucky run? Glad the issue was just from my side. I've retried and it runs smoothly, thanks for the great work ❤️

Other colleagues have confirmed to me the notebook is running perfectly 🚀

@YugangDuan
Copy link

Running the notebook results in missing module colormap, installing it resulting in missing module easydev, after installing it I got ImportError: cannot import name 'random_color' from 'colormap' (/usr/local/lib/python3.8/dist-packages/colormap/__init__.py)

I am wondering how you run it, looking at the torch version it looks like you may have run it some months ago.

Thank you for the help

Cheers,

Fra

same problem, It can work on colab, but not work on service

@frank-xwang
Copy link
Collaborator

Hi, please ensure that the MaskCut demo notebook is located within the CutLER/maskcut/ directory. The colormap is imported from maskcut/colormap.py. Based on your error message, it seems like the colormap was imported from "/usr/local/lib/python3.8/dist-packages/colormap/init.py", which is wrong. You may need to uninstall the colormap package you installed first or follow our installation instructions to build a new conda environment.

Best,
XD

@YugangDuan
Copy link

You are correct, it imported the wrong colormap.py, I have solved the problem.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants