-
Notifications
You must be signed in to change notification settings - Fork 45.4k
Description
Python: python3.6
TensorFlow: GPU Version
When I type:
$ python deeplab/model_test.py
from models/research, I get following error:
E...
ERROR: testBuildDeepLabv2 (main.DeeplabModelTest)
Traceback (most recent call last):
File "deeplab/model_test.py", line 71, in testBuildDeepLabv2
inputs, model_options, image_pyramid=image_pyramid)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/model.py", line 289, in multi_scale_logits
fine_tune_batch_norm=fine_tune_batch_norm)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/model.py", line 454, in _get_logits
fine_tune_batch_norm=fine_tune_batch_norm)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/model.py", line 357, in _extract_features
fine_tune_batch_norm=fine_tune_batch_norm)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/core/feature_extractor.py", line 227, in extract_features
final_endpoint=final_endpoint)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/core/feature_extractor.py", line 262, in network_fn
return func(preprocess_function(inputs), *args, **kwargs)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/core/feature_extractor.py", line 65, in _mobilenet_v2
scope=scope)
File "/home/computer/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/slim/nets/mobilenet/mobilenet.py", line 198, in mobilenet_base
_set_arg_scope_defaults(conv_defs_defaults),
File "/home/computer/anaconda3/envs/tensorflow/lib/python3.6/contextlib.py", line 81, in enter
return next(self.gen)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/slim/nets/mobilenet/mobilenet.py", line 90, in _set_arg_scope_defaults
func, default_arg = items[0]
TypeError: 'dict_items' object does not support indexing
======================================================================
ERROR: testForwardpassDeepLabv3plus (main.DeeplabModelTest)
Traceback (most recent call last):
File "deeplab/model_test.py", line 105, in testForwardpassDeepLabv3plus
image_pyramid=[1.0])
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/model.py", line 289, in multi_scale_logits
fine_tune_batch_norm=fine_tune_batch_norm)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/model.py", line 454, in _get_logits
fine_tune_batch_norm=fine_tune_batch_norm)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/model.py", line 357, in _extract_features
fine_tune_batch_norm=fine_tune_batch_norm)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/core/feature_extractor.py", line 227, in extract_features
final_endpoint=final_endpoint)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/core/feature_extractor.py", line 262, in network_fn
return func(preprocess_function(inputs), *args, **kwargs)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/deeplab/core/feature_extractor.py", line 65, in _mobilenet_v2
scope=scope)
File "/home/computer/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/slim/nets/mobilenet/mobilenet.py", line 198, in mobilenet_base
_set_arg_scope_defaults(conv_defs_defaults),
File "/home/computer/anaconda3/envs/tensorflow/lib/python3.6/contextlib.py", line 81, in enter
return next(self.gen)
File "/home/computer/Documents/SBIR/TensorFlow/models/research/slim/nets/mobilenet/mobilenet.py", line 90, in _set_arg_scope_defaults
func, default_arg = items[0]
TypeError: 'dict_items' object does not support indexing
Ran 5 tests in 7.630s
FAILED (errors=2)
Can anybody identify the solution for this?