junyanz / iGAN

Interactive Image Generation via Generative Adversarial Networks
MIT License
3.97k stars 587 forks source link

qdarkstyle issue (No module named qdarkstyle) #26

Open prmex900 opened 6 years ago

prmex900 commented 6 years ago

hi, i'm running this command after I have installed everything

iGAN2noui A$ THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64

and get this error. everything is installed as you described. i tried it on macos and ubuntu. same error.

Traceback (most recent call last):
  File "iGAN_main.py", line 4, in <module>
    import qdarkstyle
ImportError: No module named qdarkstyle
junyanz commented 6 years ago

You need to install it via sudo pip install qdarkstyle.

prmex900 commented 6 years ago

You need to install it via sudo pip install qdarkstyle.

this is exactly what i did. but still nothing

junyanz commented 6 years ago

Very interesting. Are you using conda? For conda users, you can try this.

prmex900 commented 6 years ago

i managed to make it with trying multiple times sudo pip install qdarkstyle

then i got problem with pyqt4

no module named pyqt4

solved with conda install pyqt=4 (only this one worked for me. macos)

then was

ModuleNotFoundError: No module named 'dominate'

solved with pip install dominate

then there is some other issues I will get back with later still couldn't run it

junyanz commented 6 years ago

Please see the requirements

prmex900 commented 6 years ago

yes I knew you will say that. It was installed right before I started. I followed every step from requirements. that is why it is all so confusing

after i run THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64

i get multiple lines like this

objc[2430]: Class QCocoaColorPanelDelegate is implemented in both /Users/USERNAME/miniconda2/lib/libQtGui.4.8.7.dylib (0x1027cfde0) and /Users/USERNAME/miniconda2/lib/python2.7/site-packages/cv2/.dylibs/QtGui (0x10a1f6d60). One of the two will be used. Which one is undefined.

and at the end

File "iGAN_main.py", line 9, in import constrained_opt File "/Users/USERNAME/iGAN/constrained_opt.py", line 3, in from lib.rng import np_rng File "/Users/USERNAME/iGAN/lib/rng.py", line 2, in from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams ImportError: No module named theano.sandbox.rng_mrg

junyanz commented 6 years ago

It seems to be related to Theano. Could you run other Theano example/test code? You may want to install this Theano version. The code was developed around 2016, and the Theano was gone now (not longer supported). Therefore, it is quite hard to compile the code. We are working on a PyTorch version, but it might take some time.

prmex900 commented 5 years ago

not really, theano gives me struggle=)

flutterq commented 3 years ago

[Solved] No module named ‘qdarkstyle.colorsystem’ in anaconda

marvelous-dog commented 3 months ago

pip install pyqtdarktheme