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

Error after add CustomZeroPadding2D() and add custom_spatial_2d_padding() #21

Open
ilham-bintang opened this issue May 22, 2019 · 0 comments

Comments

@ilham-bintang
Copy link

Hi I have the following issue after override the class and methods.

Conda list:
# Name Version Build Channel _tflow_select 2.3.0 mkl absl-py 0.7.1 py37_0 astor 0.7.1 py37_0 blas 1.0 mkl ca-certificates 2019.1.23 0 certifi 2019.3.9 py37_0 gast 0.2.2 py37_0 grpcio 1.16.1 py37h351948d_1 h5py 2.9.0 py37h5e291fa_0 hdf5 1.10.4 h7ebc959_0 icc_rt 2019.0.0 h0cc432a_1 intel-openmp 2019.3 203 keras 2.2.4 0 keras-applications 1.0.7 py_0 keras-base 2.2.4 py37_0 keras-preprocessing 1.0.9 py_0 libgpuarray 0.7.6 hfa6e2cd_0 libmklml 2019.0.3 0 libprotobuf 3.7.1 h7bd577a_0 libpython 2.1 py37_0 m2w64-binutils 2.25.1 5 m2w64-bzip2 1.0.6 6 m2w64-crt-git 5.0.0.4636.2595836 2 m2w64-gcc 5.3.0 6 m2w64-gcc-ada 5.3.0 6 m2w64-gcc-fortran 5.3.0 6 m2w64-gcc-libgfortran 5.3.0 6 m2w64-gcc-libs 5.3.0 7 m2w64-gcc-libs-core 5.3.0 7 m2w64-gcc-objc 5.3.0 6 m2w64-gmp 6.1.0 2 m2w64-headers-git 5.0.0.4636.c0ad18a 2 m2w64-isl 0.16.1 2 m2w64-libiconv 1.14 6 m2w64-libmangle-git 5.0.0.4509.2e5a9a2 2 m2w64-libwinpthread-git 5.0.0.4634.697f757 2 m2w64-make 4.1.2351.a80a8b8 2 m2w64-mpc 1.0.3 3 m2w64-mpfr 3.1.4 4 m2w64-pkg-config 0.29.1 2 m2w64-toolchain 5.3.0 7 m2w64-tools-git 5.0.0.4592.90b8472 2 m2w64-windows-default-manifest 6.4 3 m2w64-winpthreads-git 5.0.0.4634.697f757 2 m2w64-zlib 1.2.8 10 mako 1.0.9 py37_0 markdown 3.1 py37_0 markupsafe 1.1.1 py37he774522_0 mingw 4.7 1 mkl 2019.3 203 mkl-service 1.1.2 py37hb782905_5 mkl_fft 1.0.12 py37h14836fe_0 mkl_random 1.0.2 py37h343c172_0 mock 2.0.0 py37_0 msys2-conda-epoch 20160418 1 nose 1.3.7 py37_2 numpy 1.16.3 py37h19fb1c0_0 numpy-base 1.16.3 py37hc3f5095_0 openssl 1.1.1b he774522_1 pbr 5.1.3 py_0 pip 19.1.1 py37_0 protobuf 3.7.1 py37h33f27b4_0 pygpu 0.7.6 py37h452e1ab_0 pyreadline 2.1 py37_1 python 3.7.3 h8c8aaf0_1 pyyaml 5.1 py37he774522_0 scipy 1.2.1 py37h29ff71c_0 setuptools 41.0.1 py37_0 six 1.12.0 py37_0 sqlite 3.28.0 he774522_0 tensorboard 1.13.1 py37h33f27b4_0 tensorflow 1.13.1 mkl_py37h9463c59_0 tensorflow-base 1.13.1 mkl_py37hcaf7020_0 tensorflow-estimator 1.13.0 py_0 termcolor 1.1.0 py37_1 theano 1.0.4+11.gbb2daf975 pypi_0 pypi vc 14.1 h0510ff6_4 vs2015_runtime 14.15.26706 h3a45250_4 werkzeug 0.15.2 py_0 wheel 0.33.4 py37_0 wincertstore 0.2 py37_0 yaml 0.1.7 hc54c509_2 zlib 1.2.11 h62dcd97_3

make_keras_dictnet_model.py:40: UserWarning: Update your Conv2Dcall to the Keras 2 API:Conv2D(64, (5, 5), weights=[array([[[..., input_shape=(1, 32, 10..., activation="relu", padding="same") input_shape=(1, img_rows, img_cols),activation='relu',border_mode='same')) Traceback (most recent call last): File "make_keras_dictnet_model.py", line 40, in <module> input_shape=(1, img_rows, img_cols),activation='relu',border_mode='same')) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\keras\engine\sequential.py", line 165, in add layer(x) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\keras\engine\base_layer.py", line 431, in __call__ self.build(unpack_singleton(input_shapes)) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\keras\layers\convolutional.py", line 141, in build constraint=self.kernel_constraint) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper return func(*args, **kwargs) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\keras\engine\base_layer.py", line 249, in add_weight weight = K.variable(initializer(shape), File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\keras\initializers.py", line 218, in __call__ dtype=dtype, seed=self.seed) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\keras\backend\theano_backend.py", line 2630, in random_uniform return rng.uniform(shape, low=minval, high=maxval, dtype=dtype) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\sandbox\rng_mrg.py", line 872, in uniform rstates = self.get_substream_rstates(nstreams, dtype) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\configparser.py", line 117, in res return f(*args, **kwargs) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\sandbox\rng_mrg.py", line 779, in get_substream_rstates multMatVect(rval[0], A1p72, M1, A2p72, M2) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\sandbox\rng_mrg.py", line 62, in multMatVect [A_sym, s_sym, m_sym, A2_sym, s2_sym, m2_sym], o, profile=False) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\compile\function.py", line 317, in function output_keys=output_keys) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\compile\pfunc.py", line 486, in pfunc output_keys=output_keys) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\compile\function_module.py", line 1841, in orig_function fn = m.create(defaults) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\compile\function_module.py", line 1715, in create input_storage=input_storage_lists, storage_map=storage_map) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\gof\link.py", line 699, in make_thunk storage_map=storage_map)[:3] File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\gof\vm.py", line 1091, in make_all impl=impl)) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\gof\op.py", line 955, in make_thunk no_recycling) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\gof\op.py", line 858, in make_c_thunk output_storage=node_output_storage) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\gof\cc.py", line 1217, in make_thunk keep_lock=keep_lock) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\gof\cc.py", line 1157, in __compile__ keep_lock=keep_lock) File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\gof\cc.py", line 1609, in cthunk_factory key = self.cmodule_key() File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\gof\cc.py", line 1300, in cmodule_key c_compiler=self.c_compiler(), File "C:\Users\GleeTrees\Anaconda3\envs\wild\lib\site-packages\theano\gof\cc.py", line 1379, in cmodule_key_ np.core.multiarray._get_ndarray_c_version()) AttributeError: ('The following error happened while compiling the node', DotModulo(A, s, m, A2, s2, m2), '\n', "module 'numpy.core.multiarray' has no attribute '_get_ndarray_c_version'")

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

1 participant