@@ -258,7 +258,9 @@ detect_cuda_version () {
258258}
259259
260260install_torch () {
261- " ${PIP[@]} " install " torch==${TORCH_VERSION} " " torchvision==${TORCHVISION_VERSION} " --index-url " https://download.pytorch.org/whl/${BUILD_SUFFIX} "
261+ " ${PIP[@]} " install " torch==${TORCH_VERSION} " " torchvision==${TORCHVISION_VERSION} " \
262+ --index-url " https://download.pytorch.org/whl/${BUILD_SUFFIX} " \
263+ --extra-index-url " https://pypi.org/simple"
262264
263265}
264266
@@ -294,7 +296,7 @@ install_detectron2 () {
294296 " ${PIP[@]} " install --no-build-isolation -e .
295297 elif [[ " ${PACKAGE_MANAGER} " == " uv" ]]; then
296298 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
297- uv sync --inexact --group=models-detectron2
299+ uv sync --inexact --group=models-detectron2 --extra= " ${BUILD_SUFFIX} "
298300 fi
299301
300302 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
@@ -367,7 +369,7 @@ install_jde () {
367369 " ${PIP[@]} " install --no-build-isolation -e .
368370 elif [[ " ${PACKAGE_MANAGER} " == " uv" ]]; then
369371 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
370- uv sync --inexact --group=models-jde
372+ uv sync --inexact --group=models-jde --extra= " ${BUILD_SUFFIX} "
371373 fi
372374
373375 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
@@ -403,7 +405,7 @@ install_yolox () {
403405 " ${PIP[@]} " install --no-build-isolation -e .
404406 elif [[ " ${PACKAGE_MANAGER} " == " uv" ]]; then
405407 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
406- uv sync --inexact --group=models-yolox
408+ uv sync --inexact --group=models-yolox --extra= " ${BUILD_SUFFIX} "
407409 fi
408410
409411 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
@@ -442,7 +444,7 @@ install_mmpose () {
442444 " ${PIP[@]} " install isort==5.13.2
443445 elif [[ " ${PACKAGE_MANAGER} " == " uv" ]]; then
444446 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
445- uv sync --inexact --group=models-mmpose
447+ uv sync --inexact --group=models-mmpose --extra= " ${BUILD_SUFFIX} "
446448 fi
447449
448450 " ${MIM[@]} " install " mmcv==2.0.1"
@@ -478,7 +480,7 @@ install_segment_anything () {
478480 " ${PIP[@]} " install -e .
479481 elif [[ " ${PACKAGE_MANAGER} " == " uv" ]]; then
480482 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
481- uv sync --inexact --group=models-segment-anything
483+ uv sync --inexact --group=models-segment-anything --extra= " ${BUILD_SUFFIX} "
482484 fi
483485
484486 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
@@ -513,7 +515,7 @@ install_sam2 () {
513515 " ${PIP[@]} " install -e .
514516 elif [[ " ${PACKAGE_MANAGER} " == " uv" ]]; then
515517 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
516- uv sync --inexact --group=models-sam2
518+ uv sync --inexact --group=models-sam2 --extra= " ${BUILD_SUFFIX} "
517519 fi
518520
519521 cd " ${COMPRESSAI_VISION_ROOT_DIR} "
@@ -568,4 +570,4 @@ download_weights () {
568570
569571if [[ " ${__SOURCE_ONLY__:- 0} " -eq 0 ]]; then
570572 main " $@ "
571- fi
573+ fi
0 commit comments