|
@@ -14,7 +14,7 @@
|
|
|
# See the License for the specific language governing permissions and
|
|
# See the License for the specific language governing permissions and
|
|
|
# limitations under the License.
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
-#mkdir -p weights/
|
|
|
|
|
|
|
+mkdir -p /model
|
|
|
cd /model
|
|
cd /model
|
|
|
|
|
|
|
|
# DOWNLOAD CHECKPOINTS
|
|
# DOWNLOAD CHECKPOINTS
|
|
@@ -29,7 +29,7 @@ wget -N ${BASE_URL}/variables/variables.data-00000-of-00001 -P ${DEST_DIR}/varia
|
|
|
wget -N ${BASE_URL}/variables/variables.index -P ${DEST_DIR}/variables
|
|
wget -N ${BASE_URL}/variables/variables.index -P ${DEST_DIR}/variables
|
|
|
|
|
|
|
|
## ====================== resnet-nhwc-2018-02-07 ====================== ##
|
|
## ====================== resnet-nhwc-2018-02-07 ====================== ##
|
|
|
-BASE_URL="https://storage.googleapis.com/cloud-tpu-artifacts/resnet/resnet-nhwc-2018-02-07"
|
|
|
|
|
|
|
+BASE_URL="https://storage.googleapis.com/cloud-tpu-checkpoints/retinanet/resnet50-checkpoint-2018-02-07"
|
|
|
DEST_DIR="resnet/resnet-nhwc-2018-02-07"
|
|
DEST_DIR="resnet/resnet-nhwc-2018-02-07"
|
|
|
|
|
|
|
|
wget -N ${BASE_URL}/checkpoint -P ${DEST_DIR}
|
|
wget -N ${BASE_URL}/checkpoint -P ${DEST_DIR}
|
|
@@ -38,12 +38,12 @@ wget -N ${BASE_URL}/model.ckpt-112603.index -P ${DEST_DIR}
|
|
|
wget -N ${BASE_URL}/model.ckpt-112603.meta -P ${DEST_DIR}
|
|
wget -N ${BASE_URL}/model.ckpt-112603.meta -P ${DEST_DIR}
|
|
|
|
|
|
|
|
## ====================== resnet-nhwc-2018-10-14 ====================== ##
|
|
## ====================== resnet-nhwc-2018-10-14 ====================== ##
|
|
|
-BASE_URL="https://storage.googleapis.com/cloud-tpu-artifacts/resnet/resnet-nhwc-2018-10-14"
|
|
|
|
|
-DEST_DIR="resnet/resnet-nhwc-2018-10-14"
|
|
|
|
|
-
|
|
|
|
|
-wget -N ${BASE_URL}/model.ckpt-112602.data-00000-of-00001 -P ${DEST_DIR}
|
|
|
|
|
-wget -N ${BASE_URL}/model.ckpt-112602.index -P ${DEST_DIR}
|
|
|
|
|
-wget -N ${BASE_URL}/model.ckpt-112602.meta -P ${DEST_DIR}
|
|
|
|
|
|
|
+#BASE_URL="https://storage.googleapis.com/cloud-tpu-artifacts/resnet/resnet-nhwc-2018-10-14"
|
|
|
|
|
+#DEST_DIR="resnet/resnet-nhwc-2018-10-14"
|
|
|
|
|
+#
|
|
|
|
|
+#wget -N ${BASE_URL}/model.ckpt-112602.data-00000-of-00001 -P ${DEST_DIR}
|
|
|
|
|
+#wget -N ${BASE_URL}/model.ckpt-112602.index -P ${DEST_DIR}
|
|
|
|
|
+#wget -N ${BASE_URL}/model.ckpt-112602.meta -P ${DEST_DIR}
|
|
|
|
|
|
|
|
# VERIFY CHECKPOINTS
|
|
# VERIFY CHECKPOINTS
|
|
|
echo "Verifying and Processing Checkpoints..."
|
|
echo "Verifying and Processing Checkpoints..."
|
|
@@ -64,8 +64,8 @@ python inspect_checkpoint.py --file_name=mask-rcnn/1555659850/ckpt/model.ckpt \
|
|
|
python inspect_checkpoint.py --file_name=resnet/resnet-nhwc-2018-02-07/model.ckpt-112603 \
|
|
python inspect_checkpoint.py --file_name=resnet/resnet-nhwc-2018-02-07/model.ckpt-112603 \
|
|
|
> resnet/resnet-nhwc-2018-02-07/tensors_and_shape.txt
|
|
> resnet/resnet-nhwc-2018-02-07/tensors_and_shape.txt
|
|
|
|
|
|
|
|
-python inspect_checkpoint.py --file_name=resnet/resnet-nhwc-2018-10-14/model.ckpt-112602 \
|
|
|
|
|
- > resnet/resnet-nhwc-2018-10-14/tensors_and_shape.txt
|
|
|
|
|
|
|
+#python inspect_checkpoint.py --file_name=resnet/resnet-nhwc-2018-10-14/model.ckpt-112602 \
|
|
|
|
|
+# > resnet/resnet-nhwc-2018-10-14/tensors_and_shape.txt
|
|
|
|
|
|
|
|
python inspect_checkpoint.py --file_name=resnet/extracted_from_maskrcnn/resnet50.ckpt \
|
|
python inspect_checkpoint.py --file_name=resnet/extracted_from_maskrcnn/resnet50.ckpt \
|
|
|
> resnet/extracted_from_maskrcnn/tensors_and_shape.txt
|
|
> resnet/extracted_from_maskrcnn/tensors_and_shape.txt
|