-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run eval.py successfully #17
Comments
Test this command: darknet/darknet detector valid products/chinese.0.data products/yolo-chinese-test.cfg products/backup/yolo-chinese_final.weights -out chinese.0 and check whether return code is 0. |
I try your command and return code is 0. |
Note: 'settings.DARKNET_RESULTS_OUT' parameter is directly passed to 'outfile' in https://github.com/pjreddie/darknet/blob/f6d861736038da22c9eb0739dca84003c5a5e275/examples/detector.c#L409 Line 409, that's why we cannot write a file path. And so does 'settings.DARKNET_RESULTS_DIR', it is passed to 'prefix'. |
您好,我在python3 eval.py时候出现了问题,请问您知道怎么解决吗? Exception in thread Thread-1: |
请问您这个问题解决了吗,是如何解决的呢?期待您的回答 |
测试该命令时darknet/darknet detector valid products/chinese.0.data products/yolo-chinese-test.cfg products/backup/yolo-chinese_final.weights -out chinese.0 |
先看一下使用的 darknet 版本是不是我改过的版本: 这是 Git Submodule 引用的指定版本,并不是任何版本的 darknet 都行。 |
您好 我检查一下确实是您的改过的版本,但是还是出现了该错误,不知道问题出在了哪里 |
而且只是在测试时执行python3 eval.py出现的问题,训练的时候没有报错。期待您的回答。 |
命令行里单进程调用 darknet/darknet 也出问题的话,请确认空闲显存大于 4GB。既然训练时都没报错,应该是够的。我没遇到过这个问题,这得用gdb或加断点查程序崩在哪了。 |
运行 确认文件夹 products/results 存在 确认 products/test.0.txt 里引用的图片存在 确认以下文件存在,核对文件内容 products/chinese.0.data products/chinese.names products/yolo-chinese-test.cfg batch=1 height=1216 |
感谢您的耐心解答。我按照您说的仔细核查了一遍,发现文件夹 products/test.0.txt中显示0字节,没有任何内容。其他的文件夹以及文件并没有什么问题。并且data/images/test文件夹中并没有生成测试集图片,之前的指令只生成了data/images/trainval文件夹中的训练集图片。不知是哪里出现了问题。 |
prepare_test_data.py 再运行一遍 |
运行 prepare_test_data.py之后没反应,我觉得问题出在cd ../prepare && python3 symlink_images.py这里,因为运行此命令之后只有文件夹 data/images/trainval中生成了图片,而文件夹data/images/test中并没有图片。我也没有更改过代码,试了很多次还是不行。 |
Hi,I followed your steps in tutorial 3-detection ,but I got some error when I try to run eval.py.
Here is the wrong log:
mask_scale: Using default '1.000000'
Loading weights from products/backup/yolo-chinese_final.weights...conv 5030 1 x 1 / 1 38 x 38 x1024 -> 38 x 38 x5030
30 detection
mask_scale: Using default '1.000000'
Loading weights from products/backup/yolo-chinese_final.weights...Done!
Learning Rate: 0.0001, Momentum: 0.9, Decay: 0.0005
4
Done!
Learning Rate: 0.0001, Momentum: 0.9, Decay: 0.0005
4
8
Exception in thread Thread-2:
Traceback (most recent call last):
File "/home/deeplearn/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/deeplearn/anaconda3/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/gxwang2/ctw/ctw-baseline/detection/pythonapi/common_tools.py", line 77, in parallel_work
func(*args_list[i], tid=tid)
File "eval.py", line 70, in eval_yolo
assert 0 == p.returncode
AssertionError
Exception in thread Thread-1:
Traceback (most recent call last):
File "/home/deeplearn/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/deeplearn/anaconda3/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/gxwang2/ctw/ctw-baseline/detection/pythonapi/common_tools.py", line 77, in parallel_work
func(*args_list[i], tid=tid)
File "eval.py", line 70, in eval_yolo
assert 0 == p.returncode
AssertionError
I changed the num_thread and TEST_NUM_GPU but that doesn't work.
Could you give me some help? Thank you
The text was updated successfully, but these errors were encountered: