question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: `default_name` type (<class 'list'>) is not a string type. When run train_ssd.py, I meet a TpyeError.

See original GitHub issue

tensorflow 1.14 ,python3.5 ,cuda10.0, cudnn7.5.0

Traceback (most recent call last): File “/home/wzy/SSD.TensorFlow-master/train_ssd.py”, line 464, in <module> tf.app.run() File “/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py”, line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File “/usr/local/lib/python3.5/dist-packages/absl/app.py”, line 300, in run _run_main(main, args) File “/usr/local/lib/python3.5/dist-packages/absl/app.py”, line 251, in _run_main sys.exit(main(argv)) File “/home/wzy/SSD.TensorFlow-master/train_ssd.py”, line 460, in main hooks=[logging_hook], max_steps=FLAGS.max_number_of_steps) File “/usr/local/lib/python3.5/dist-packages/tensorflow_estimator/python/estimator/estimator.py”, line 367, in train loss = self._train_model(input_fn, hooks, saving_listeners) File “/usr/local/lib/python3.5/dist-packages/tensorflow_estimator/python/estimator/estimator.py”, line 1158, in _train_model return self._train_model_default(input_fn, hooks, saving_listeners) File “/usr/local/lib/python3.5/dist-packages/tensorflow_estimator/python/estimator/estimator.py”, line 1185, in train_model_default input_fn, ModeKeys.TRAIN)) File “/usr/local/lib/python3.5/dist-packages/tensorflow_estimator/python/estimator/estimator.py”, line 1022, in get_features_and_labels_from_input_fn self.call_input_fn(input_fn, mode)) File “/usr/local/lib/python3.5/dist-packages/tensorflow_estimator/python/estimator/estimator.py”, line 1113, in call_input_fn return input_fn(**kwargs) File “/home/wzy/SSD.TensorFlow-master/train_ssd.py”, line 198, in input_fn is_training=is_training) File “/home/wzy/SSD.TensorFlow-master/dataset/dataset_common.py”, line 231, in slim_get_batch gt_targets, gt_labels, gt_scores = anchor_encoder(glabels, gbboxes) File “/home/wzy/SSD.TensorFlow-master/train_ssd.py”, line 187, in <lambda> anchor_encoder_fn = lambda glabels, gbboxes: anchor_encoder_decoder.encode_all_anchors(glabels, gbboxes, all_anchors, all_num_anchors_depth, all_num_anchors_spatial) File “/home/wzy/SSD.TensorFlow-master/utility/anchor_manipulator.py”, line 177, in encode_all_anchors overlap_matrix = iou_matrix(bboxes, anchors_point) * tf.cast(tf.expand_dims(inside_mask, 0), tf.float32) File “/home/wzy/SSD.TensorFlow-master/utility/anchor_manipulator.py”, line 43, in iou_matrix with tf.name_scope(‘iou_matrix’, [gt_bboxes, default_bboxes]): File “/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py”, line 6450, in init “pass this into the values kwarg.” % type(default_name)) TypeError: default_name type (<class ‘list’>) is not a string type. You likely meant to pass this into the values kwarg.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

4reactions
18846935350commented, Nov 14, 2019

查找tf.name_cope(),将[Image]更改为values=[Image],即Add values=

1reaction
tinothy22commented, Nov 15, 2019

i have solve,change all name_scope in anchor_manipulator.py

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: in user code: While using model.fit - Stack Overflow
The problem is that there is an error in all of your model.add(Dropout(0,2)) lines, you have a comma instead of a period.
Read more >
Chapter 5 questions - Course - Hugging Face Forums
I was able to reproduce your error, so have opened an issue on the datasets repo here: TypeError: Couldn't cast array of type...
Read more >
How to train SSD MOBILENET DRAGON for Custom Object ...
In this video, we will see how we can train SSD -MOBILENET model for ... machine and then we have used #jetson #xavier...
Read more >
04. Train SSD on Pascal VOC dataset
Download Python source code: train_ssd_voc.py. file_download. Download Jupyter notebook: train_ssd_voc.ipynb. This tutorial goes through the basic building ...
Read more >
Changelog — MMDetection 2.14.0 文档
Fix type error of AutoAssign in the document (#5478) ... Get loading pipeline by checking the class directly rather than through config strings...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found