Skip to content

Commit

Permalink
Update make_fixed_sizes.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 authored Jul 2, 2023
1 parent 11e24fe commit 447aad1
Showing 1 changed file with 58 additions and 60 deletions.
118 changes: 58 additions & 60 deletions make_fixed_sizes.sh
Original file line number Diff line number Diff line change
@@ -1,64 +1,62 @@
RESOLUTIONS=(
"180 320"
"180 416"
"180 512"
"180 640"
"180 800"
"240 320"
"240 416"
"240 512"
"240 640"
"240 800"
"240 960"
"288 480"
"288 512"
"288 640"
"288 800"
"288 960"
"288 1280"
"320 320"
"360 480"
"360 512"
"360 640"
"360 800"
"360 960"
"360 1280"
"376 1344"
"416 416"
"480 640"
"480 800"
"480 960"
"480 1280"
"512 512"
"540 800"
"540 960"
"540 1280"
"640 640"
"640 960"
"720 1280"
"720 2560"
"1080 1920"
)
#!/bin/bash

RESOLUTIONS=(
"180 320"
)
RESOLUTIONS=(
"180 320"
"180 416"
"180 512"
"180 640"
"180 800"
"240 320"
"240 416"
"240 512"
"240 640"
"240 800"
"240 960"
"288 480"
"288 512"
"288 640"
"288 800"
"288 960"
"288 1280"
"320 320"
"360 480"
"360 512"
"360 640"
"360 800"
"360 960"
"360 1280"
"376 1344"
"416 416"
"480 640"
"480 800"
"480 960"
"480 1280"
"512 512"
"540 800"
"540 960"
"540 1280"
"640 640"
"640 960"
"720 1280"
"720 2560"
"1080 1920"
)

for((i=0; i<${#RESOLUTIONS[@]}; i++))
do
RESOLUTION=(`echo ${RESOLUTIONS[i]}`)
H=${RESOLUTION[0]}
W=${RESOLUTION[1]}
for((i=0; i<${#RESOLUTIONS[@]}; i++))
do
RESOLUTION=(`echo ${RESOLUTIONS[i]}`)
H=${RESOLUTION[0]}
W=${RESOLUTION[1]}

onnxsim superpoint_lightglue_superpoint.onnx superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx \
--overwrite-input-shape "image0:1,3,${H},${W}" "image1:1,3,${H},${W}"
onnxsim superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx
onnxsim superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx
onnxsim superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx
onnxsim superpoint_lightglue_superpoint.onnx superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx \
--overwrite-input-shape "image0:1,3,${H},${W}" "image1:1,3,${H},${W}"
onnxsim superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx
onnxsim superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx
onnxsim superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx superpoint_lightglue_superpoint_1x3x${H}x${W}.onnx

# onnxsim superpoint_lightglue_disk.onnx superpoint_lightglue_disk_1x3x${H}x${W}.onnx \
# --overwrite-input-shape "image0:1,3,${H},${W}" "image1:1,3,${H},${W}"
# onnxsim superpoint_lightglue_disk_1x3x${H}x${W}.onnx superpoint_lightglue_disk_1x3x${H}x${W}.onnx
# onnxsim superpoint_lightglue_disk_1x3x${H}x${W}.onnx superpoint_lightglue_disk_1x3x${H}x${W}.onnx
# onnxsim superpoint_lightglue_disk_1x3x${H}x${W}.onnx superpoint_lightglue_disk_1x3x${H}x${W}.onnx
done
# onnxsim superpoint_lightglue_disk.onnx superpoint_lightglue_disk_1x3x${H}x${W}.onnx \
# --overwrite-input-shape "image0:1,3,${H},${W}" "image1:1,3,${H},${W}"
# onnxsim superpoint_lightglue_disk_1x3x${H}x${W}.onnx superpoint_lightglue_disk_1x3x${H}x${W}.onnx
# onnxsim superpoint_lightglue_disk_1x3x${H}x${W}.onnx superpoint_lightglue_disk_1x3x${H}x${W}.onnx
# onnxsim superpoint_lightglue_disk_1x3x${H}x${W}.onnx superpoint_lightglue_disk_1x3x${H}x${W}.onnx
done

0 comments on commit 447aad1

Please sign in to comment.