Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
8cb27e48
Commit
8cb27e48
authored
Aug 11, 2021
by
Vincent Dumoulin
Committed by
A. Unique TensorFlower
Aug 11, 2021
Browse files
Internal change
PiperOrigin-RevId: 390116640
parent
6825aa31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
official/vision/beta/data/process_coco_few_shot.sh
official/vision/beta/data/process_coco_few_shot.sh
+2
-2
official/vision/beta/data/process_coco_few_shot_json_files.py
...cial/vision/beta/data/process_coco_few_shot_json_files.py
+1
-1
No files found.
official/vision/beta/data/process_coco_few_shot.sh
View file @
8cb27e48
...
@@ -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"
\
...
...
official/vision/beta/data/process_coco_few_shot_json_files.py
View file @
8cb27e48
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment