caffe icon indicating copy to clipboard operation
caffe copied to clipboard

error when using "create_data.bat" to create lmdb files on windows

Open hualiang9488 opened this issue 9 years ago • 3 comments

hi: I install the caffe-ssd-microsoft on windows successfully. Then I want to train the VOC0712 dataset, but when I run "caffe-ssd-microsoft\data\VOC0712\create_data.bat":

Creating trainval lmdb... usage: create_annoset.py [-h] [--redo] [--anno-type ANNO_TYPE] [--label-type LABEL_TYPE] [--backend BACKEND] [--check-size] [--encode-type ENCODE_TYPE] [--encoded] [--gray] [--label-map-file LABEL_MAP_FILE] [--min-dim MIN_DIM] [--max-dim MAX_DIM] [--resize-height RESIZE_HEIGHT] [--resize-width RESIZE_WIDTH] [--shuffle] [--check-label] root listfile outdir exampledir create_annoset.py: error: too few arguments

then I found "create_annoset.py" needs 4 required arguments, then I add "create_data.bat" :

%data_root_dir% ^ %data_root_dir%%%s.txt ^ %data_root_dir%%%s_%db% ^ %data_root_dir%\example

but, the error information change to :

Traceback (most recent call last): File "D:\ssd\caffe-ssd-microsoft\scripts\create_annoset.py", line 159, in process = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE) File "D:\miniconda\lib\subprocess.py", line 711, in init errread, errwrite) File "D:\miniconda\lib\subprocess.py", line 959, in _execute_child startupinfo) WindowsError: [Error 2]

I dont know how to fix this , please help ~~ Thanks !!!

hualiang9488 avatar Mar 29 '17 08:03 hualiang9488

@hualiang9488 can you please refer to ssd-windows repo? Thanks

roipony avatar Apr 03 '17 18:04 roipony

same problem, have you solved the problem?

XipengLin avatar Nov 28 '17 06:11 XipengLin

have you solved this problem

ppxd6 avatar May 01 '18 19:05 ppxd6