orpatashnik/StyleCLIP

inference.py: ModuleNotFoundError: No module named 'mapper'

yar3333 opened this issue · 1 comments

Run:

python mapper/scripts/inference.py

Result:

Traceback (most recent call last):
  File "./mapper/scripts/inference.py", line 13, in <module>
    from mapper.training.train_utils import convert_s_tensor_to_list
ModuleNotFoundError: No module named 'mapper'

inference.py:

from mapper.training.train_utils import convert_s_tensor_to_list

sys.path.append(".")
sys.path.append("..")

Looks like we need to move lines sys.path.append before from mapper.training.train_utils?