Skip to content

Commit cb7f7e7

Browse files
committed
install: fix patching for detectron2
1 parent 70de97f commit cb7f7e7

File tree

2 files changed

+1
-71
lines changed

2 files changed

+1
-71
lines changed

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ prepare_detectron2 () {
272272
cd "${MODELS_SOURCE_DIR}/detectron2"
273273
if [[ "${FCM_CTTC}" == "True" ]]; then
274274
git -c advice.detachedHead=false checkout 175b2453c2bc4227b8039118c01494ee75b08136
275+
git apply "${SCRIPT_DIR}/install_utils/patches/0001-detectron2-fpn-bottom-up-separate.patch" || echo "Patch could not be applied. Possibly already applied."
275276
fi
276-
git apply "${SCRIPT_DIR}/install_utils/patches/0001-detectron2-fpn-bottom-up-separate.patch" || echo "Patch could not be applied. Possibly already applied."
277277
cd "${COMPRESSAI_VISION_ROOT_DIR}"
278278
}
279279

scripts/install_utils/patches/0002-detectron2-setup-defer-torch-import.patch

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)