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
Traceback (most recent call last):
File "train.py", line 11, in
from tensorflow_model_optimization.sparsity import keras as sparsity
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/init.py", line 86, in
from tensorflow_model_optimization.python.core.api import clustering
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/api/init.py", line 16, in
from tensorflow_model_optimization.python.core.api import clustering
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/api/clustering/init.py", line 16, in
from tensorflow_model_optimization.python.core.api.clustering import keras
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/api/clustering/keras/init.py", line 19, in
from tensorflow_model_optimization.python.core.clustering.keras.cluster import cluster_scope
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/clustering/keras/cluster.py", line 22, in
from tensorflow_model_optimization.python.core.clustering.keras import cluster_wrapper
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/clustering/keras/cluster_wrapper.py", line 24, in
from tensorflow_model_optimization.python.core.clustering.keras import clustering_registry
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py", line 57, in
class ClusteringRegistry(object):
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py", line 65, in ClusteringRegistry
layers.Conv1DTranspose: ['kernel'],
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_core/python/util/module_wrapper.py", line 193, in getattr
attr = getattr(self._tfmw_wrapped_module, name)
AttributeError: module 'tensorflow.python.keras.api._v1.keras.layers' has no attribute 'Conv1DTranspose'
The text was updated successfully, but these errors were encountered:
Bro, the tensorflow-gpu versions I used are 1.15.0 and 2.0.0. This problem occurred when I was running the train.py. Is this caused by the tensorflow-gpu version? Which version of tensorflow-gpu is more appropriate? Thank u
I also got into the same problem, my tensorflow-gpu versions is 2.2.0 and I wanted to train on yolo3_mobilenet; input shape as 736x1280; batch size of 2. I am not sure what has been going on since the project worked weeks ago
Traceback (most recent call last):
File "train.py", line 11, in
from tensorflow_model_optimization.sparsity import keras as sparsity
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/init.py", line 86, in
from tensorflow_model_optimization.python.core.api import clustering
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/api/init.py", line 16, in
from tensorflow_model_optimization.python.core.api import clustering
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/api/clustering/init.py", line 16, in
from tensorflow_model_optimization.python.core.api.clustering import keras
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/api/clustering/keras/init.py", line 19, in
from tensorflow_model_optimization.python.core.clustering.keras.cluster import cluster_scope
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/clustering/keras/cluster.py", line 22, in
from tensorflow_model_optimization.python.core.clustering.keras import cluster_wrapper
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/clustering/keras/cluster_wrapper.py", line 24, in
from tensorflow_model_optimization.python.core.clustering.keras import clustering_registry
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py", line 57, in
class ClusteringRegistry(object):
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py", line 65, in ClusteringRegistry
layers.Conv1DTranspose: ['kernel'],
File "/home/kz/anaconda3/envs/tf115/lib/python3.6/site-packages/tensorflow_core/python/util/module_wrapper.py", line 193, in getattr
attr = getattr(self._tfmw_wrapped_module, name)
AttributeError: module 'tensorflow.python.keras.api._v1.keras.layers' has no attribute 'Conv1DTranspose'
The text was updated successfully, but these errors were encountered: