Skip to content

Commit

Permalink
added oxford-hands setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavz committed Jan 23, 2018
1 parent 750ac5b commit dfbdbf1
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 336 deletions.
10 changes: 7 additions & 3 deletions egohands_dataset_cleaner.py → egohands_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ def split_data_test_eval_train(image_dir):
loop_index = 0
data_sampsize = int(0.1 * data_size)
test_samp_array = random.sample(range(data_size), k=data_sampsize)

print('data_sampsize: ',data_sampsize)
print('test_samp_array: ',test_samp_array)
return

for root, dirs, filenames in os.walk(image_dir):
for dir in dirs:
Expand Down Expand Up @@ -243,12 +247,12 @@ def final_finish():
f.close()
cwd = os.getcwd()
for directory in ['train','eval']:
src_dir = cwd+'/data/{}'.format(directory)
drc_dir = cwd+'/data/{}/images'.format(directory)
src_dir = cwd+'/data/{}/'.format(directory)
drc_dir = cwd+'/data/{}/images/'.format(directory)
create_directory(drc_dir)
for file in os.listdir(src_dir):
if file.endswith(".jpg"):
sh.move(src_dir+'/'+file,drc_dir+'/'+file)
sh.move(src_dir+file,drc_dir+file)

sh.rmtree('egohands')
#os.remove(EGO_HANDS_FILE)
Expand Down
192 changes: 0 additions & 192 deletions model/ssd_mobilehandsnet.config

This file was deleted.

2 changes: 0 additions & 2 deletions model/ssd_mobilenet_checkpoints/checkpoint

This file was deleted.

Binary file not shown.
Binary file removed model/ssd_mobilenet_checkpoints/model.ckpt.index
Binary file not shown.
Binary file removed model/ssd_mobilenet_checkpoints/model.ckpt.meta
Binary file not shown.
139 changes: 0 additions & 139 deletions model/tiny-yolo-handsnet.cfg

This file was deleted.

Loading

0 comments on commit dfbdbf1

Please sign in to comment.