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

model/sgan.py", line 154, in edge c = conv2d(edge, [4, 4, nc, nf], 'h1', bias=True) NameError: name 'conv2d' is not defined #13

Open
ahmedshingaly opened this issue Sep 4, 2020 · 0 comments

Comments

@ahmedshingaly
Copy link

i modified the script to run on PyQt5 instead of PyQt4
my TensorFlow version is 1.1.0 inside python 3.6, however i am encountering the bellow issue:
any suggestions will be appreciated

`python application.py
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ahmed/anaconda3/envs/py361/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
WARNING:tensorflow:From /home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py:13: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.

WARNING:tensorflow:From /home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py:15: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

2020-09-04 17:35:49.652680: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2020-09-04 17:35:49.675335: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3493490000 Hz
2020-09-04 17:35:49.676389: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55d9a11d3230 executing computations on platform Host. Devices:
2020-09-04 17:35:49.676412: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): ,
WARNING:tensorflow:From /home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py:19: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.

WARNING:tensorflow:From /home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py:153: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.

Traceback (most recent call last):
File "application.py", line 12, in
model = sgan.Model("params/sgan_model.ckpt")
File "/home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py", line 16, in init
self.build_model(model_path)
File "/home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py", line 28, in build_model
edge = enc.edge(self.edge, self.train, self.n_cls)
File "/home/ahmed/Documents/3DAI/pix2vox_maxorange/model/sgan.py", line 154, in edge
c = conv2d(edge, [4, 4, nc, nf], 'h1', bias=True)
NameError: name 'conv2d' is not defined
`

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