orpatashnik / StyleCLIP

Official Implementation for "StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery" (ICCV 2021 Oral)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

yar3333 opened this issue · 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?