-
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
AssertionError with four byte size difference when converting #421
Comments
This comment on #107 suggests that training from scratch might solve this issue. I retrained the network using |
This comment suggests to change |
I meet this problems too,I think it is caused by the unpair between .weight and .cfg , maybe it is a little cue, but I have no idea to solve it,so sorry |
Modify loader.py under darkflow/utils may help. |
thank you for your help,i have solve it ,thankyou again
发自我的 iPhone
… 在 2017年11月16日,03:52,shangliy ***@***.***> 写道:
Modify loader.py under darkflow/utils may help.
Change the line 121 from self.offset = 16 to self.offset = 20~~~
This work for me, hope help~
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
i have Changed the line 121 from self.offset = 16 to self.offset = 20! but the same error not disappear! |
why should we change this number "self.offset" value |
My guess is that the offset that deals with the difference between c and python but I could be wrong. Can you try reduce the offset to 12 to keep the expected bytes equal to the actual bytes. Let me know how that goes. |
@yw455801125 how did you get it working? You can convert it by using --savepb or something similar. It is in the Readme. |
@yw455801125 The weights I used to transform are from Darknet not darkflow. The weights storage format from Darkflow and Darknet are different. So, I guess my solution may not work on your case. |
@yw455801125 I think it's because the size of the header of the most up-to-date yolo v2 weights changed from 16 bytes to 20 bytes, so the |
@yw455801125 in case you have not solved this issue yet or for others , you need to upgrade your darkflow installation after your modification of darkflow/utils/loader.py |
go the same error |
@hsgaurav |
@fbadaud how do you link a file |
Error :- AssertionError: expect 63184556 bytes, found 63184560 Solution : " ./darkflow/utils/loader.py" at line 121, you will find self.offset= 16 or 20. Best of Luck, it work for me, hope it may work for you as well, keep helping other. |
I'm getting a rather weird error trying to convert a
darknet
trained Tiny YOLO (adjusted model, transfer learned using a custom dataset) usingflow --savepb
, which complains about finding an unexpected file size. The size difference appears to be exactly four bytes though:I was trying it with different versions of TensorFlow, specifically 1.0.1 and 1.3.1, but that didn't change anything.
Does anyone have an idea what could trigger this issue?
The text was updated successfully, but these errors were encountered: