Comments (11)
@rainley123 . So how did you solved this?
Just add a code to judge if the croped_xmin is equal to the croped_xmax, is they are the same, remove the label and box, because this object will not be in the picture after crop.
the code is like this:
if the object is not in the dist_box, just remove it
mask = tf.logical_not(tf.logical_or(tf.equal(croped_xmin, croped_xmax), tf.equal(croped_ymin, croped_ymax)))
croped_xmin = tf.boolean_mask(croped_xmin, mask)
croped_ymin = tf.boolean_mask(croped_ymin, mask)
croped_xmax = tf.boolean_mask(croped_xmax, mask)
croped_ymax = tf.boolean_mask(croped_ymax, mask)
labels = tf.boolean_mask(labels, mask)
from tensorflow-yolov3.
When I run the train.py,I also can‘t train my data.It's also the problem:
OutOfRangeError: End of sequence
[[{{node cond/IteratorGetNext_1}} = IteratorGetNextoutput_shapes=[[?,416,416,3], , , ], output_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
During handling of the above exception, another exception occurred。OutOfRangeError Traceback (most recent call last)
in ()
78 if (epoch+1)%1000 == 0: saver.save(sess, save_path="./checkpoint/yolov3.ckpt", global_step=epoch)
Do you know what's the problem?
from tensorflow-yolov3.
=> EPOCH: 341 loss_xy: 1.6257 loss_wh: 4.0940 loss_conf:4570.6030 loss_class:14.2002
=> EPOCH: 342 loss_xy: 1.5741 loss_wh: 2.6803 loss_conf:4656.8652 loss_class:11.8622
=> EPOCH: 343 loss_xy: 1.3638 loss_wh: 2.3212 loss_conf:4657.7090 loss_class:11.4552
2019-01-22 16:34:48.172989: W tensorflow/core/framework/op_kernel.cc:1261] Unknown: IndexError: index 13 is out of bounds for axis 0 with size 13
Traceback (most recent call last):File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/script_ops.py", line 206, in call
ret = func(*args)File "........../tensorflow-yolov3/core/dataset.py", line 105, in preprocess_true_boxes
y_true[l][j, i, k, 0:4] = gt_boxes[t, 0:4]IndexError: index 13 is out of bounds for axis 0 with size 13
what's wrong
I also got this problems and have solved this problems. when you do data_augmentation. there are some problems in crop code. if one object is not in the distort_box, the croped_xmin and croped_xmax will be the same, in this way, you will get this problems
from tensorflow-yolov3.
@rainley123 . So how did you solved this?
from tensorflow-yolov3.
Thanks a lot, I gonna try it.
from tensorflow-yolov3.
UnknownError: IndexError: index 89 is out of bounds for axis 0 with size 88
Traceback (most recent call last):
File "D:\Users\madhu\Anaconda3\envs\yolo\lib\site-packages\tensorflow\python\ops\script_ops.py", line 206, in call
ret = func(*args)
File "C:\Users\madhu\Desktop\working\tensorflow-yolov3-master\core\dataset.py", line 180, in preprocess_true_boxes
y_true[l][j, i, k, 0:4] = gt_boxes[t, 0:4]
IndexError: index 89 is out of bounds for axis 0 with size 88
[[{{node PyFunc}} = PyFunc[Tin=[DT_FLOAT], Tout=[DT_FLOAT, DT_FLOAT, DT_FLOAT], token="pyfunc_0"](stack)]]
[[node cond/IteratorGetNext (defined at C:\Users\madhu\Desktop\working\tensorflow-yolov3-master\core\dataset.py:230) = IteratorGetNext[output_shapes=[[?,704,1280,3], <unknown>, <unknown>, <unknown>], output_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](cond/IteratorGetNext/Switch:1)]]
for some reason i am also getting the same error. I have included the above code, still there is no change.
from tensorflow-yolov3.
UnknownError: IndexError: index 89 is out of bounds for axis 0 with size 88
Traceback (most recent call last):File "D:\Users\madhu\Anaconda3\envs\yolo\lib\site-packages\tensorflow\python\ops\script_ops.py", line 206, in call
ret = func(*args)File "C:\Users\madhu\Desktop\working\tensorflow-yolov3-master\core\dataset.py", line 180, in preprocess_true_boxes
y_true[l][j, i, k, 0:4] = gt_boxes[t, 0:4]IndexError: index 89 is out of bounds for axis 0 with size 88
[[{{node PyFunc}} = PyFunc[Tin=[DT_FLOAT], Tout=[DT_FLOAT, DT_FLOAT, DT_FLOAT], token="pyfunc_0"](stack)]] [[node cond/IteratorGetNext (defined at C:\Users\madhu\Desktop\working\tensorflow-yolov3-master\core\dataset.py:230) = IteratorGetNext[output_shapes=[[?,704,1280,3], <unknown>, <unknown>, <unknown>], output_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](cond/IteratorGetNext/Switch:1)]]
for some reason i am also getting the same error. I have included the above code, still there is no change.
I was receiving this same error.If you have some classes like me, make sure your label class names start from index 0 and not 1.
from tensorflow-yolov3.
My class names are labeled from zero only. If you know any further info please let me know
from tensorflow-yolov3.
=> EPOCH: 341 loss_xy: 1.6257 loss_wh: 4.0940 loss_conf:4570.6030 loss_class:14.2002
=> EPOCH: 342 loss_xy: 1.5741 loss_wh: 2.6803 loss_conf:4656.8652 loss_class:11.8622
=> EPOCH: 343 loss_xy: 1.3638 loss_wh: 2.3212 loss_conf:4657.7090 loss_class:11.4552
2019-01-22 16:34:48.172989: W tensorflow/core/framework/op_kernel.cc:1261] Unknown: IndexError: index 13 is out of bounds for axis 0 with size 13
Traceback (most recent call last):File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/script_ops.py", line 206, in call
ret = func(*args)File "........../tensorflow-yolov3/core/dataset.py", line 105, in preprocess_true_boxes
y_true[l][j, i, k, 0:4] = gt_boxes[t, 0:4]IndexError: index 13 is out of bounds for axis 0 with size 13
what's wrong
hello,i met the same problem with u,have u solved it?
from tensorflow-yolov3.
yes, i cropped my images and labels were not modified.
Still, Nan is not going away even with so many tweeks
from tensorflow-yolov3.
@rainley123 . So how did you solved this?
Just add a code to judge if the croped_xmin is equal to the croped_xmax, is they are the same, remove the label and box, because this object will not be in the picture after crop.
the code is like this:if the object is not in the dist_box, just remove it
mask = tf.logical_not(tf.logical_or(tf.equal(croped_xmin, croped_xmax), tf.equal(croped_ymin, croped_ymax))) croped_xmin = tf.boolean_mask(croped_xmin, mask) croped_ymin = tf.boolean_mask(croped_ymin, mask) croped_xmax = tf.boolean_mask(croped_xmax, mask) croped_ymax = tf.boolean_mask(croped_ymax, mask) labels = tf.boolean_mask(labels, mask)
请问这段代码添加在哪里
from tensorflow-yolov3.
Related Issues (20)
- Cannot train each branch separately (large-object or medium-object branch)
- Can this implemented on Tensorflow 2.4?
- 能否直接读取ckpt文件的网络进行训练
- question about restriction on xind, yind
- yolov3 tensorflow2的实现
- 测试的时候为什么只有一个input_size?图片不是正方形怎么办? HOT 1
- Using MSE loss for class prediction
- 提一个bug,固定的一组anchors用于多尺度训练存在不严谨。 HOT 1
- 测试时检测的目标框比实际目标大出很多
- 请问您有相关的yolov3部署的教程吗?开发板或者服务器
- 3d detection
- Stuck
- Converting .pb to .tflite ? HOT 1
- How do you save the trained model to HDF5 (h5) format?
- Can i train on multi-gpu HOT 1
- 发现个测试小问题image_demo/video_demo
- Need explnation on LR Scheduler
- WHAT IS PROBLEM HERE
- Key conv52/batch_normalization/beta/ExponentialMovingAverage not found in checkpoint
- cpu训练正常,gpu训练出现loss=nan HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow-yolov3.