jychoi118 / ilvr_adm

ILVR: Conditioning Method for Denoising Diffusion Probabilistic Models (ICCV 2021 Oral)
MIT License
417 stars 51 forks source link

AttributeError: module 'mpi4py' has no attribute 'MPI' #37

Open Ningxin88 opened 4 months ago

Ningxin88 commented 4 months ago

When I try to run the file _ilvrsample.py, I get stuck in the import _distutil.py. So I started trying to run this file, but I got an error, I tried to change the import to the form import mpi4py.MPI, but it still got an error (like the title). I tried searching the internet for some tutorials, but I couldn't download MPI from sudo

~/ilvr_adm$ python scripts/ilvr_sample.py Traceback (most recent call last): File "/data/hdd01/yaohy/ilvr_adm/scripts/ilvr_sample.py", line 130, in <module> main() File "/data/hdd01/yaohy/ilvr_adm/scripts/ilvr_sample.py", line 46, in main dist_util.setup_dist() File "/data/hdd01/yaohy/ilvr_adm/guided_diffusion/dist_util.py", line 30, in setup_dist comm = mpi4py.MPI.COMM_WORLD ^^^^^^^^^^ AttributeError: module 'mpi4py' has no attribute 'MPI'