File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -418,3 +418,21 @@ This error occurs when the filepaths in the training configuration file (faster_
418418```
419419“C:/path/to/model.file”
420420```
421+
422+ #### 5. ValueError: Tried to convert 't' to a tensor and failed. Error: Argument must be a dense tensor: range(0, 3) - got shape [ 3] , but wanted [ ] .
423+
424+ The issue is with models/research/object_detection/utils/learning_schedules.py Currently it is
425+ ```
426+ rate_index = tf.reduce_max(tf.where(tf.greater_equal(global_step, boundaries),
427+ range(num_boundaries),
428+ [0] * num_boundaries))
429+ ```
430+ Wrap list() around the range() like this:
431+
432+ ```
433+ rate_index = tf.reduce_max(tf.where(tf.greater_equal(global_step, boundaries),
434+ list(range(num_boundaries)),
435+ [0] * num_boundaries))
436+ ```
437+
438+ [ Ref: Tensorflow Issue #3705 ] ( https://github.com/tensorflow/models/issues/3705#issuecomment-375563179 )
You can’t perform that action at this time.
0 commit comments