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
4da1c86f
Commit
4da1c86f
authored
Apr 03, 2017
by
Mahmoud Lababidi
Committed by
Neal Wu
Apr 04, 2017
Browse files
fix missing build images script
parent
dd983ea6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
inception/inception/data/download_and_preprocess_flowers.sh
inception/inception/data/download_and_preprocess_flowers.sh
+4
-3
No files found.
inception/inception/data/download_and_preprocess_flowers.sh
View file @
4da1c86f
...
@@ -44,7 +44,8 @@ DATA_DIR="${1%/}"
...
@@ -44,7 +44,8 @@ DATA_DIR="${1%/}"
SCRATCH_DIR
=
"
${
DATA_DIR
}
/raw-data/"
SCRATCH_DIR
=
"
${
DATA_DIR
}
/raw-data/"
mkdir
-p
"
${
DATA_DIR
}
"
mkdir
-p
"
${
DATA_DIR
}
"
mkdir
-p
"
${
SCRATCH_DIR
}
"
mkdir
-p
"
${
SCRATCH_DIR
}
"
WORK_DIR
=
"
$0
.runfiles/inception/inception"
# http://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
WORK_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
# Download the flowers data.
# Download the flowers data.
DATA_URL
=
"http://download.tensorflow.org/example_images/flower_photos.tgz"
DATA_URL
=
"http://download.tensorflow.org/example_images/flower_photos.tgz"
...
@@ -87,9 +88,9 @@ done < "${LABELS_FILE}"
...
@@ -87,9 +88,9 @@ done < "${LABELS_FILE}"
# Build the TFRecords version of the image data.
# Build the TFRecords version of the image data.
cd
"
${
CURRENT_DIR
}
"
cd
"
${
CURRENT_DIR
}
"
BUILD_SCRIPT
=
"
${
WORK_DIR
}
/build_image_data"
BUILD_SCRIPT
=
"
${
WORK_DIR
}
/build_image_data
.py
"
OUTPUT_DIRECTORY
=
"
${
DATA_DIR
}
"
OUTPUT_DIRECTORY
=
"
${
DATA_DIR
}
"
"
${
BUILD_SCRIPT
}
"
\
python
"
${
BUILD_SCRIPT
}
"
\
--train_directory
=
"
${
TRAIN_DIRECTORY
}
"
\
--train_directory
=
"
${
TRAIN_DIRECTORY
}
"
\
--validation_directory
=
"
${
VALIDATION_DIRECTORY
}
"
\
--validation_directory
=
"
${
VALIDATION_DIRECTORY
}
"
\
--output_directory
=
"
${
OUTPUT_DIRECTORY
}
"
\
--output_directory
=
"
${
OUTPUT_DIRECTORY
}
"
\
...
...
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