-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ValueError: cannot convert float NaN to integer #1
Comments
The size of yolotiny.weights is 103.4Mb and I think the error comes out of this. But I do not know how to fix that. |
Hi @karlTUM, according to the available configs/yolo-tiny.cfg, the size of yolo-tiny.weights MUST be 180MB (4 bytes for each parameter - you can check it yourself). So the problem is either you downloaded the wrong weight file, or the YOLO authors released a new config with size 103MB. In the latter situation, you must replace this new config into ./configs before running the demo. Good luck! |
I've looked at the YOLO webpage. They indeed released a new config compare to when I develop this repo. So you must use the old weight file (180MB) for the demo to be successful. |
Thank you. I will download an old version |
where can I download old weight file? |
@kivijoshi I'll try to upload it. |
thanks :) |
I also tried swapping cfg file with new one from darknet repo. but it does not work |
new config file consists of batch-normalization layers. This is new compare to the old configs and my code currently cannot work with these. |
@karlTUM @kivijoshi here is the old weight file https://drive.google.com/open?id=0B1tW_VtY7onibmdQWE1zVERxcjQ |
Thanks a lot for the thread. I'm wondering whether anyone has the old yolo-full weight file? The old tiny weight file works perfectly fine. |
@jwnsu I have that one too, please wait until I uploaded it. |
@thtrieu I'm wondering whether you find time to upload the old full yolo weight files. From the testing, it seems full model outperforms small and tiny quite a bit in a few test models. When I create new model (e.g. 3c), tried to copy extraction.conv.weights as yolo-full.weights, but it seems genw.py does not take partial weight as darknet does. Thanks again. Appreciate the project and efforts. |
@thtrieu I'd like also to ask about the old yolo-coco.weights file since the current one online has been replaced with batch-normalization conv layers too. This will complete the configuration set for this fine project. Thanks in advance. |
@jwnsu @Mu7ammad I believe I will finish building the batch-normalization layer as well as allowing to import partial network within this week. Thanks for pointing out the need. P/S: the old COCO model is one that I did not have access to unfortunately :( |
Thanks a lot, Trieu. One question for you: do you have plan to refresh Best, On Mon, Nov 7, 2016 at 9:10 AM, Trieu notifications@github.com wrote:
|
@jwnsu I do, the plan is to support partial weight file as well as adding batch_norm layer within this week, as stated in the previous post |
Great! Will watch your checkin, I'm happy to test and report result to you. Dennis On Mon, Nov 7, 2016 at 9:48 AM, Trieu notifications@github.com wrote:
|
@thtrieu That would be great, looking forward to these updates, 頑張って! |
@jwnsu @Mu7ammad The next goal is to work on yolov2, or essentially work on Cheers. |
@thtrieu great news it now supports the latest models, thanks for the good effort. I'm then interested to try out tiny-coco next since it's close to tiny-yolo, will explore the code and syntax. |
@Mu7ammad The dynamics are already there. The only thing you need to do is to add Now you can run |
Dear
Thank you very much for posting Yolo in tensorflow.
I try the demo and get the following error. Could you please have a look?
First, I download the yolotiny.weights from Yolo website.
Then,
At last, I run the test code:
How to fix that?
Thank you very much.
The text was updated successfully, but these errors were encountered: