Darkflow: Question about "assert walker.offset == walker.size" in loader.py

Created on 13 Jul 2017  路  4Comments  路  Source: thtrieu/darkflow

I was wondering what this assert is checking for: https://github.com/thtrieu/darkflow/blob/master/darkflow/utils/loader.py#L75

I have a custom trained model and config file from darknet and when I tried use prediction I keep getting the "expected x bytes, found y" error. If I comment it out then darkflow runs fine, but I also am unsure what issues that would cause?

Most helpful comment

I got the same problem too. Don't comment that line. Just go to this file https://github.com/thtrieu/darkflow/blob/479c83e14559fd5eceb9a9f612503b29a67fac5c/darkflow/utils/loader.py#L121 and change to self.offset = 20 it will work

All 4 comments

Hmmm well it looks like now the detection can't find anything. Still wondering what walk.offset is though.

I got the same problem too. Don't comment that line. Just go to this file https://github.com/thtrieu/darkflow/blob/479c83e14559fd5eceb9a9f612503b29a67fac5c/darkflow/utils/loader.py#L121 and change to self.offset = 20 it will work

@minhnhat93 You're right it worked! Thanks so much! Interestingly, the results I got from darkflow detection is slightly different from darknet using the same weights. Not sure if it has anything to do with the offsets though.

after change self.offset = 16 ==> self.offset =20, You need uninstall darkflow, and pip3 install it (reinstall it)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

off99555 picture off99555  路  5Comments

eugtanchik picture eugtanchik  路  4Comments

xunkaixin picture xunkaixin  路  4Comments

bareblackfoot picture bareblackfoot  路  5Comments

LeeroyHannigan picture LeeroyHannigan  路  4Comments