darkflow
darkflow copied to clipboard
sre_constants.error: bad character range x-g at position 648
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
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.
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.
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 "".
thanks for the answer, it saved my ass
thanks it saved me as well
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