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: expect 44948596 bytes, found 44948600 #802
Comments
Hi, I have this issue too. |
Oh, Jesus! |
thank you for that link |
I had the same error with yolo not with tiny-yolo, |
I got the same problem. I modified yolov2.cfg with 3 classes and used yolov2.weights to train my own dataset. zihang@derek:~/project/darkflow$ flow --model cfg/yolov2-3c.cfg --load bin/yolov2.weights --train --annotation train/Annotations --dataset train/Images --gpu 1.0 /home/zihang/anaconda3/envs/tensorflow/lib/python3.6/site-packages/darkflow/dark/darknet.py:54: UserWarning: ./cfg/yolov2.cfg not found, use cfg/yolov2-3c.cfg instead |
I also same error.... I cannot solved it.....Anyone help me |
I don't understand why, but it works!!! thank you!! |
@dudqls1994 |
Thanks man, you are a life saver |
Tried @ideaRunner solution, didn't completely work, displayed another error, so I reduced the gpu from 1.0 to 0.8 and it worked fine! Thanks @ideaRunner! Sorry for not attaching any screenshots, I would have to recreate the problem. |
so we don't have to go into the link that may break one day :
For me it did not work. the difference between expect and found shrank a lot though |
I had same problem but it can be solved by correct self.offset if 44948596 bytes, found 44948600 means the difference (44948600- 44948596 ) should be added to self.offset. self.offset= self.offset + 4 difference (44948600- 44948596 ) |
face palm* |
@shalin51 Does that mean that new walk function should be: def walk(self, size): Should we just delete the size parameter then? |
Here is my solution:
It works for me. Notice: You still have to figure out that whether your cfg file and weights and labels.txt match to each other. |
I solved the problem. Find the file "loader.py" and change the value of "self.offset". |
I also solved. im just changing self.offset value as '20' "loader.py" in ~/darkflow/utils i don't know why this working. but it's work! |
I've been trying all the above specified methods. But nothing of it seem to be working!! Is there any other way to solve this issue up!! |
Honestly I do not know how does it work, but it solved my issue, great!! |
diff --git a/darkflow/utils/loader.py b/darkflow/utils/loader.py
|
so when i use this command on cmd c:\dark\darkflow-master>python flow --model cfg/yolov2-tiny.cfg --load bin/yolov2-tiny.weights
and then this error appears
please help me fix this
The text was updated successfully, but these errors were encountered: