Commit 8cb27e48 authored by Vincent Dumoulin's avatar Vincent Dumoulin Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 390116640
parent 6825aa31
...@@ -15,7 +15,7 @@ done ...@@ -15,7 +15,7 @@ done
cocosplit_url="dl.yf.io/fs-det/datasets/cocosplit" cocosplit_url="dl.yf.io/fs-det/datasets/cocosplit"
wget --recursive --no-parent -q --show-progress --progress=bar:force:noscroll \ wget --recursive --no-parent -q --show-progress --progress=bar:force:noscroll \
-P "${tmp_dir}" -A "trainvalno5k.json,5k.json,*10shot*.json,*30shot*.json" \ -P "${tmp_dir}" -A "trainvalno5k.json,5k.json,*1shot*.json,*3shot*.json,*5shot*.json,*10shot*.json,*30shot*.json" \
"http://${cocosplit_url}/" "http://${cocosplit_url}/"
mv "${tmp_dir}/${cocosplit_url}/"* "${tmp_dir}" mv "${tmp_dir}/${cocosplit_url}/"* "${tmp_dir}"
rm -rf "${tmp_dir}/${cocosplit_url}/" rm -rf "${tmp_dir}/${cocosplit_url}/"
...@@ -24,7 +24,7 @@ python process_coco_few_shot_json_files.py \ ...@@ -24,7 +24,7 @@ python process_coco_few_shot_json_files.py \
--logtostderr --workdir="${tmp_dir}" --logtostderr --workdir="${tmp_dir}"
for seed in {0..9}; do for seed in {0..9}; do
for shots in 10 30; do for shots in 1 3 5 10 30; do
python create_coco_tf_record.py \ python create_coco_tf_record.py \
--logtostderr \ --logtostderr \
--image_dir="${base_image_dir}/train2014" \ --image_dir="${base_image_dir}/train2014" \
......
...@@ -53,7 +53,7 @@ CATEGORIES = ['airplane', 'apple', 'backpack', 'banana', 'baseball bat', ...@@ -53,7 +53,7 @@ CATEGORIES = ['airplane', 'apple', 'backpack', 'banana', 'baseball bat',
'traffic light', 'train', 'truck', 'tv', 'umbrella', 'vase', 'traffic light', 'train', 'truck', 'tv', 'umbrella', 'vase',
'wine glass', 'zebra'] 'wine glass', 'zebra']
SEEDS = list(range(10)) SEEDS = list(range(10))
SHOTS = [10, 30] SHOTS = [1, 3, 5, 10, 30]
FILE_SUFFIXES = collections.defaultdict(list) FILE_SUFFIXES = collections.defaultdict(list)
for _seed, _shots in itertools.product(SEEDS, SHOTS): for _seed, _shots in itertools.product(SEEDS, SHOTS):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment