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

No module named 'mira' #8

Open
SHYuanBest opened this issue May 10, 2024 · 2 comments
Open

No module named 'mira' #8

SHYuanBest opened this issue May 10, 2024 · 2 comments

Comments

@SHYuanBest
Copy link

inference.py 19
from models.samplers.ddim import DDIMSampler

ddim.py 7
from mira.models.utils_diffusion import make_ddim_sampling_parameters, make_ddim_timesteps

ModuleNotFoundError:
No module named 'mira'

@SHYuanBest
Copy link
Author


ddp_wrapper.py 40
inference_api = importlib.import_module(args.module, package=None)

init.py 127 import_module
return _bootstrap._gcd_import(name[level:], package, level)

1014 _gcd_import

991 _find_and_load

975 _find_and_load_unlocked

671 _load_unlocked

783 exec_module

219 _call_with_frames_removed

inference.py 19
from models.samplers.ddim import DDIMSampler

ddim.py 7
from mira.models.utils_diffusion import make_ddim_sampling_parameters, make_ddim_timesteps

ModuleNotFoundError:
No module named 'mira'

@MqLeet
Copy link

MqLeet commented Jun 17, 2024

This is an error about environment path, just add

sys.path.insert(1, os.path.join(sys.path[0], '..', '..', '..'))

before

from mira.models.samplers.ddim import DDIMSampler

will fix this bug.

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

2 participants