Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I run main.py and replicating.py, I meet a same error. #7

Closed
andongBlue opened this issue May 1, 2019 · 3 comments
Closed

When I run main.py and replicating.py, I meet a same error. #7

andongBlue opened this issue May 1, 2019 · 3 comments

Comments

@andongBlue
Copy link

When I run main.py and replicating.py, I meet a same error.
The error may be about allow_pickle=False.
We can see the following tips ,there is 'error' in the last line.
WARNING:tensorflow:From /home/hp/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/keras/initializers.py:104: calling VarianceScaling.__init__ (from tensorflow.python.ops.init_ops) with distribution=normal is deprecated and will be removed in a future version. Instructions for updating: normalis a deprecated alias fortruncated_normalTraceback (most recent call last): File "main.py", line 60, in <module> net.train() File "/home/hp/下载/Dehaze-GAN-master/model.py", line 230, in train self.build_model() File "/home/hp/下载/Dehaze-GAN-master/model.py", line 167, in build_model self.RealB_VGG = self.build_vgg(self.RealB) File "/home/hp/下载/Dehaze-GAN-master/model.py", line 141, in build_vgg model = vgg19.Vgg19() File "/home/hp/下载/Dehaze-GAN-master/vgg19.py", line 13, in __init__ self.data_dict = np.load('./vgg19.npy', encoding='latin1').item() File "/home/hp/anaconda3/envs/tensorflow/lib/python3.6/site-packages/numpy/lib/npyio.py", line 447, in load pickle_kwargs=pickle_kwargs) File "/home/hp/anaconda3/envs/tensorflow/lib/python3.6/site-packages/numpy/lib/format.py", line 692, in read_array raise ValueError("Object arrays cannot be loaded when " ValueError: Object arrays cannot be loaded when allow_pickle=False

@andongBlue
Copy link
Author

I think I may ask a XYproblem.
When I run main.py and replicating.py,I can't load the file of npy.
How can I fix it?

@BITWN
Copy link

BITWN commented Jul 23, 2019

I met the same problem, have you solved it?

@Fu7388
Copy link

Fu7388 commented Dec 2, 2019

I think you'd better to degrade numpy version.
pip install numpy ==1.16.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants