-
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
expect 202355760 bytes, found 203934260 #900
Comments
I got a similar error.
This issue #802 also mentioned this error. |
did you change label? I also have this error |
This error arises because of mismatch of configuration file and loaded weight. updated self.offset = old_offset_value + (found_value - expected_value) And also check that number of classes in cfg file is equal to the number of labels present in labels.txt |
1、首先,我们在ubuntu下先用anaconda2(版本是2还是3不影响)安装了tensorflow. |
@abhishek795jha |
I had same problem. My calculated value was 820820 and it didn't detect anything. I changed back classes to same number (in my case it was 80) and downloaded 80 labels. after that the calculated number was 4 and it started detecting. I didn't have the time to exactly calculate the bytes, but from my experience I can say that it depends on number of filters. |
@shalin51 |
@me6ran |
I don't know whether it's a good idea or not. But it works if you comment out that assert statement. |
abhishek795jha is right! I solved the problem. |
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. |
C:\Users\BFOSS\Desktop\darkflow-master>python flow --model cfg/yolov2.cfg --load bin/yolov2.weights --train --annotation new_model_data/annotations --dataset new_model_data/images --gpu 0.8 --epoch 300
Parsing ./cfg/yolov2.cfg
Parsing cfg/yolov2.cfg
Loading bin/yolov2.weights ...
Traceback (most recent call last):
File "flow", line 6, in
cliHandler(sys.argv)
File "C:\Users\BFOSS\Desktop\darkflow-master\darkflow\cli.py", line 26, in cliHandler
tfnet = TFNet(FLAGS)
File "C:\Users\BFOSS\Desktop\darkflow-master\darkflow\net\build.py", line 58, in init
darknet = Darknet(FLAGS)
File "C:\Users\BFOSS\Desktop\darkflow-master\darkflow\dark\darknet.py", line 27, in init
self.load_weights()
File "C:\Users\BFOSS\Desktop\darkflow-master\darkflow\dark\darknet.py", line 82, in load_weights
wgts_loader = loader.create_loader(*args)
File "C:\Users\BFOSS\Desktop\darkflow-master\darkflow\utils\loader.py", line 105, in create_loader
return load_type(path, cfg)
File "C:\Users\BFOSS\Desktop\darkflow-master\darkflow\utils\loader.py", line 19, in init
self.load(*args)
File "C:\Users\BFOSS\Desktop\darkflow-master\darkflow\utils\loader.py", line 77, in load
walker.offset, walker.size)
AssertionError: expect 202355760 bytes, found 203934260
how can I solve it ?
The text was updated successfully, but these errors were encountered: