mikelzc1990 / nsganetv2

[ECCV2020] NSGANetV2: Evolutionary Multi-Objective Surrogate-Assisted Neural Architecture Search
Apache License 2.0
150 stars 34 forks source link

ModuleNotFoundError: No module named 'ofa.imagenet_classification' #15

Open bellgrylls opened 2 years ago

bellgrylls commented 2 years ago

Successfully installed ofa-0.0.4.post2006292247,but this problem shows.Which version should I install

vinh-cao commented 2 years ago

I had the same error and found out, that the error is caused by having the file ofa.py in the search_space directory like the lib name. Removing the search_space as source code directory (removing from PYTHONPATH) solves the issue in this ticket.

nish-sv commented 1 year ago

Hi @vinh-cao , I am not able to run the msunas.py file. It shows pymoo module not found. I tried the pymoo documentation but not able to access the pymoo.model function. Did you face any issue like this ?

vinh-cao commented 1 year ago

Hi @vinh-cao , I am not able to run the msunas.py file. It shows pymoo module not found. I tried the pymoo documentation but not able to access the pymoo.model function. Did you face any issue like this ?

Hi, I just install the latest version of pymoo using pip. If I remember correctly, I also need to change the code a bit because of interface changes. But the modification is not a big deal.

666vegetable commented 1 year ago

I had the same error and found out, that the error is caused by having the file ofa.py in the search_space directory like the lib name. Removing the search_space as source code directory (removing from PYTHONPATH) solves the issue in this ticket.

你好,您说的是什么意思呢?是ofa.py的名字重复了还是search_space文件夹的名字有问题呢?我应该怎么做? @vinh-cao

Junaid199f commented 11 months ago

Install this version of ofa ofa 0.1.0.post202307202001