darkflow icon indicating copy to clipboard operation
darkflow copied to clipboard

sre_constants.error: bad character range x-g at position 648

Open JijoDaniel22 opened this issue 7 years ago • 6 comments

code i used to train my own dataset is python flow --model cfg/tiny-yolo-voc.cfg --load bin/test.weights --train --annotation train/Annotations --dataset train/autos

JijoDaniel22 avatar Nov 20 '18 13:11 JijoDaniel22

Can you check if you have any special characters in your training file names? If this is the case, I had faced a similar issue and by renaming the file names and making same changes in the annotations for same file paths solved the issue.

Also, it would be easier to suggest the solution if you paste the entire stack trace of your error.

sandeeprepakula avatar Nov 22 '18 10:11 sandeeprepakula

I faced the same issue, has been solved after renaming the XML files. names were like this: exctracted_from_false_pics_original_00567.xml I utilized epoch number to rename the files to numbers. Thanks.

me6ran avatar Jan 08 '19 22:01 me6ran

I had similar error.

Mine was: "sre_constants.error: bad character range m-2 at position 18" The issue was that my xml file included '-' in the name, so the python3.6/glob.py was hoping for a number range instead taking it as a string.

I fixed it with renaming the files in folder, replacing "-" with "".

kribu avatar Mar 05 '19 08:03 kribu

thanks for the answer, it saved my ass

ksimran1010 avatar Apr 02 '19 19:04 ksimran1010

thanks it saved me as well

Devraj004 avatar Jul 13 '19 19:07 Devraj004

raise source.error(msg, len(this) + 1 + len(that)) re.error: bad character range w-. at position 11 can yo solved this error , for postman to post data

Kapkotiksingh avatar Dec 27 '22 08:12 Kapkotiksingh