-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
F0707 15:46:19.091634 13341 io.cpp:325] Check failed: 'anno' Must be non NULL #6955
Comments
this is create_data.sh cur_dir=$(cd cd $root_dir redo=1 extra_cmd="--encode-type=jpg --encoded" |
this is create_annoset.py import argparse from caffe.proto import caffe_pb2 if name == "main": args = parser.parse_args() redo = args.redo check if root directory existsif not os.path.exists(root_dir): add "/" to root directory if neededif root_dir[-1] != "/": check if list file existsif not os.path.exists(list_file): check list file format is correctwith open(list_file, "r") as lf: check if label map file existif anno_type == "detection": get caffe root directorycaffe_root = "/home/sherlock/Documents/caffe" if not os.path.exists(example_dir): |
Hello, I successfully compiled your caffe-ssd, but it prompted me the error during create lmdb file by cread_data.sh:
sherlock@Y50-70:~/Downloads/myproject$ ./create_data.sh
root directory ok
list_file OK
img_file,anno,have been read
text_format has been used
anno_type is detection
/home/sherlock/Documents/caffe/build/tools/convert_annoset --anno_type=detection --label_type=xml --label_map_file=/home/sherlock/Downloads/myproject/labelmap_voc.prototxt --check_label=True --min_dim=0 --max_dim=0 --resize_height=256 --resize_width=256 --backend=lmdb --shuffle=False --check_size=False --encode_type=jpg --encoded=True --gray=False /home/sherlock/Downloads/myproject/ /home/sherlock/Downloads/myproject/trainval.txt /home/sherlock/Downloads/myproject/wider_face_LMDB/lmdb/wider_face_LMDB_trainval_lmdb
I0707 15:46:19.063556 13341 convert_annoset.cpp:122] A total of 12876 images.
I0707 15:46:19.063902 13341 db_lmdb.cpp:35] Opened lmdb /home/sherlock/Downloads/myproject/wider_face_LMDB/lmdb/wider_face_LMDB_trainval_lmdb
F0707 15:46:19.091634 13341 io.cpp:325] Check failed: 'anno' Must be non NULL
*** Check f
ailure stack trace: ***
@ 0x7f4ff26160cd google::LogMessage::Fail()
@ 0x7f4ff2617f33 google::LogMessage::SendToLog()
@ 0x7f4ff2615c28 google::LogMessage::Flush()
@ 0x7f4ff2618999 google::LogMessageFatal::~LogMessageFatal()
@ 0x7f4ff2a6ad45 google::CheckNotNull<>()
@ 0x7f4ff2a653cf caffe::ReadXMLToAnnotatedDatum()
@ 0x7f4ff2a6715e caffe::ReadRichImageToAnnotatedDatum()
@ 0x55c155bb1341 (unknown)
@ 0x7f4ff1416b97 __libc_start_main
@ 0x55c155bb1dfa (unknown)
could you help me solve this problem, thanks!!
The text was updated successfully, but these errors were encountered: