ruotianluo / ImageCaptioning.pytorch

I decide to sync up this repo and self-critical.pytorch. (The old master is in old master branch for archive)
MIT License
1.43k stars 409 forks source link

Simple Test Collab Notebook No longer Works #168

Closed AlexanderWeismannn closed 1 year ago

AlexanderWeismannn commented 1 year ago

Hi There,

I was attempting to test out the collab notebook but run into ImportError: cannot import name '_C' from 'maskrcnn_benchmark' when stepping through the compilation of each cell. Has anyone else faced this issue and if so did they find a solution for it?

Cheers!

ruotianluo commented 1 year ago

can you try to find if there is any Github issues in the maskrcnn repo?

AlexanderWeismannn commented 1 year ago

https://github.com/facebookresearch/maskrcnn-benchmark/issues/1313 Found a similar problem here.

Though examining the code im not sure exactly what should be changed. Ill attach some images below:

image

image

AlexanderWeismannn commented 1 year ago

After more investigation there seems to be no issues on the maskrcnn page that are very related to this issue.

ruotianluo commented 1 year ago

use this, to install 1.7.0 pytorch %pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

ruotianluo commented 1 year ago

at least the same error won't appear.

AlexanderWeismannn commented 1 year ago

Awesome that worked. Running into new issues but ill see if i can fix those / make a new Issue if not. Thanks!