You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 for
truncated_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
The text was updated successfully, but these errors were encountered: