seasonSH/SemanticStyleGAN

A possible error was found executing the generate.py file on the windows 10 command line, and a code solution was provided.

YifanWangCN opened this issue · 0 comments

Possible relative path solution for window10 command line code execution

import sys
import os
curPath = os.path.abspath(os.path.dirname(file))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)