run-youngjoo / SC-FEGAN

SC-FEGAN : Face Editing Generative Adversarial Network with User's Sketch and Color (ICCV2019)
Other
3.35k stars 530 forks source link

ImportError: No module named ui.ui #2

Open jackylee1 opened 5 years ago

jackylee1 commented 5 years ago

ImportError: No module named ui.ui ?

claudetheboof commented 5 years ago

getting the same error here :P hopefully someone know how to fix it and give us a fix

abtExp commented 5 years ago

It's because your sys path doesn't have ui at root. Just do

import sys
sys.path.insert(0, './ui/')

This will insert the ui module in your root path, Then instead of

from ui.ui import *

Do

from ui import *