Comments (6)
from keras-gan.
Hi Emma,
Sorry for the late response. I have updated all my packages and I have no problem running the scripts even with the latest versions. In the following code snippet you can see that I can access scipy.misc.imread
even with version 1.0.1 of scipy:
Python 3.6.3 (default, Oct 4 2017, 06:09:15)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> print (scipy.__version__)
1.0.1
>>> from scipy.misc import imread
>>>
Have you been able to solve this since you posted?
from keras-gan.
Hi,
I had a similar issue. Apparently imread
depends on Pillow (former PIL). You can install it with anaconda:
conda install pillow
see also the following issue on StackOverflow
from keras-gan.
Thanks, @eriklindernoren, and @SimonTreu for your suggestion. I fixed this error sometimes ago but forgot to post it here.
As far as I remember it was a series of minor changes with Python dependencies until finding out the right set of packages working together without warning or errors. PS: the better way is running through a docker, but in a research trying-and-failing phase, it is quite hard to make sure all you want is there.
Probably, this exhaustive list would help some other folks save time with Ananconda
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: linux-64
absl-py=0.1.13=py36_0
alabaster=0.7.10=py36h306e16b_0
asn1crypto=0.24.0=py36_0
babel=2.5.3=py36_0
backcall=0.1.0=py36_0
backports=1.0=py36hfa02d7e_1
backports.weakref=1.0rc1=py36_0
bleach=1.5.0=py36_0
ca-certificates=2018.03.07=0
certifi=2018.1.18=py36_0
cffi=1.11.5=py36h9745a5d_0
chardet=3.0.4=py36h0f667ec_1
cryptography=2.2.2=py36h14c3975_0
cycler=0.10.0=py36h93f1223_0
dbus=1.13.2=h714fa37_1
decorator=4.3.0=py36_0
docutils=0.14=py36hb0f60f5_0
expat=2.2.5=he0dffb1_0
fontconfig=2.12.6=h49f89f6_0
freetype=2.8=hab7d2ae_1
glib=2.56.1=h000015b_0
gst-plugins-base=1.14.0=hbbd80ab_1
gstreamer=1.14.0=hb453b48_1
h5py=2.7.1=py36h3585f63_0
hdf5=1.10.1=h9caa474_1
html5lib=0.9999999=py36_0
icu=58.2=h9c2bf20_1
idna=2.6=py36h82fb2a8_1
imagesize=1.0.0=py36_0
intel-openmp=2018.0.0=8
ipython=6.3.1=py36_0
ipython_genutils=0.2.0=py36hb52b0d5_0
jedi=0.11.1=py36_1
jinja2=2.10=py36ha16c418_0
jpeg=9b=h024ee3a_2
keras=2.1.5=py36_0
kiwisolver=1.0.1=py36h764f252_0
libedit=3.1=heed3624_0
libffi=3.2.1=hd88cf55_4
libgcc-ng=7.2.0=hdf63c60_3
libgfortran-ng=7.2.0=hdf63c60_3
libpng=1.6.34=hb9fc6fc_0
libprotobuf=3.5.2=h6f1eeef_0
libstdcxx-ng=7.2.0=hdf63c60_3
libtiff=4.0.9=h28f6b97_0
libxcb=1.13=h1bed415_1
libxml2=2.9.8=hf84eae3_0
markdown=2.6.11=py36_0
markupsafe=1.0=py36hd9260cd_1
matplotlib=2.2.2=py36h0e671d2_1
mkl=2018.0.2=1
mkl_fft=1.0.1=py36h3010b51_0
mkl_random=1.0.1=py36h629b387_0
ncurses=6.0=h9df7e31_2
numpy=1.14.2=py36hdbf6ddf_1
numpydoc=0.8.0=py36_0
olefile=0.45.1=py36_0
openssl=1.0.2o=h20670df_0
packaging=17.1=py36_0
parso=0.1.1=py36h35f843b_0
pcre=8.42=h439df22_0
pexpect=4.5.0=py36_0
pickleshare=0.7.4=py36h63277f8_0
pillow=5.1.0=py36h3deb7b8_0
pip=9.0.3=py36_0
prompt_toolkit=1.0.15=py36h17d85b1_0
protobuf=3.5.2=py36hf484d3e_0
ptyprocess=0.5.2=py36h69acd42_0
pycparser=2.18=py36hf9f622e_1
pygments=2.2.0=py36h0d3125c_0
pyopenssl=17.5.0=py36h20ba746_0
pyparsing=2.2.0=py36hee85983_1
pyqt=5.9.2=py36h751905a_0
pysocks=1.6.8=py36_0
python=3.6.5=hc3d631a_0
python-dateutil=2.7.2=py36_0
pytz=2018.4=py36_0
pyyaml=3.12=py36hafb9ca4_1
qt=5.9.5=h7e424d6_0
readline=7.0=ha6073c6_4
requests=2.18.4=py36he2e5f8d_1
scipy=1.0.1=py36hfc37229_0
setuptools=39.0.1=py36_0
simplegeneric=0.8.1=py36_2
sip=4.19.8=py36hf484d3e_0
six=1.11.0=py36h372c433_1
snowballstemmer=1.2.1=py36h6febd40_0
sphinx=1.7.2=py36_0
sphinxcontrib=1.0=py36h6d0f590_1
sphinxcontrib-websupport=1.0.1=py36hb5cb234_1
sqlite=3.22.0=h1bed415_0
tensorflow=1.5.0=0
tensorflow-base=1.5.0=py36hff88cb2_1
tensorflow-tensorboard=1.5.1=py36hf484d3e_0
tk=8.6.7=hc745277_3
tornado=5.0.1=py36_1
traitlets=4.3.2=py36h674d592_0
typing=3.6.4=py36_0
urllib3=1.22=py36hbe7ace6_0
wcwidth=0.1.7=py36hdf4376a_0
werkzeug=0.14.1=py36_0
wheel=0.31.0=py36_0
xz=5.2.3=h55aa19d_2
yaml=0.1.7=had09818_2
zlib=1.2.11=ha838bed_2
from keras-gan.
I have added pillow to requirements.txt. Hopefully that solves this issue.
from keras-gan.
Hello Erik! Thanks for great work..!
I am trying DCGAN for my project. My discriminator is over fitting and generator loss is increasing. I am trying to update generator more often than discriminator, for it to get converged. Can you please suggest changes in code for that?
Thanks.!
from keras-gan.
Related Issues (20)
- when training CGAN, raise AttributeError: 'list' object has no attribute 'keys' in the following code HOT 5
- About pix2pix cannot be executed
- [Pix2Pix] Use fit_generator to speed up training process
- Why d_loss = 0.5 * np.add(d_loss_real, d_loss_fake) ? HOT 7
- cGAN: Using Multi label with different number of classes
- DCGAN can only generate noise images HOT 5
- (WGAN_GP)BatchNormalization in critic
- Adversarial Autoencoder training procedure does not correspond to procedure described in paper
- SRGAN - Generated image got PINK overlay all the time ? How to solve this ? HOT 1
- StarGAN & StyleGAN any chance ?
- Cannot import 'Adam' for keras optimizers while testing acgan HOT 1
- ACGAN: Difference multiplication and concatenation of embedding and noise
- pix2pix download dataset
- ImportError: cannot import name 'DataLoader' from 'data_loader'
- Where can I find and download some pre-trained model?
- Project dependencies may have API risk issues
- SRGAN dataset is not available
- when training SGAN for cifar10 and mnist dataset, raised the "AttributeError: 'list' object has no attribute 'keys' "in the following code lones
- cGAN with multi-labels of multi-classes HOT 1
- Keras GAN
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras-gan.