Skip to content

Commit d1c5b59

Browse files
Merge pull request EdjeElectronics#137 from HiCraigChen/master
Add Commom Error
2 parents 48b0db1 + d185bf5 commit d1c5b59

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)