Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

ImportError: cannot import name 'mpi_net' from 'nets' #35

Open
noobtoob4lyfe opened this issue Mar 30, 2021 · 4 comments
Open

ImportError: cannot import name 'mpi_net' from 'nets' #35

noobtoob4lyfe opened this issue Mar 30, 2021 · 4 comments

Comments

@noobtoob4lyfe
Copy link

Hi.
Do we need a version of nets from 2018 to get this working? If you go to version history of nets https://pypi.org/project/nets/#history the furthest back you can go is May 22nd of 2020. Can you explain how to get around the error "ImportError: cannot import name 'mpi_net' from 'nets'" ? Thanks!

@reyet
Copy link

reyet commented Mar 30, 2021 via email

@noobtoob4lyfe
Copy link
Author

It's not supposed to import mpi_net from pypi.org, it's supposed to import it from https://github.com/google/stereo-magnification/blob/master/stereomag/nets.py which you can see defines mpi_net at line 23. Perhaps your python path is not set up to find the right source files?

On Tue, Mar 30, 2021 at 1:17 PM noobtoob4lyfe @.***> wrote: Hi. Do we need a version of nets from 2018 to get this working? If you go to version history of nets https://pypi.org/project/nets/#history the furthest back you can go is May 22nd of 2020. Can you explain how to get around the error "ImportError: cannot import name 'mpi_net' from 'nets'" ? Thanks! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#35>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE54MLLDYOIWHFQRGZTUIDLTGIBTTANCNFSM42CRAORA .

Thanks for your reply. I'm using a google colab notebook, and running "!python ./mpi_from_images.py ". Do I need to add something that tells it about a different python path?

@noobtoob4lyfe
Copy link
Author

I tried setting things up again from scratch. should I not be doing "!pip install nets" ??? Is there a way to install the nets module contained in /stereomag/nets.py instead????

@reyet
Copy link

reyet commented Mar 31, 2021 via email

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

No branches or pull requests

2 participants