Update torch/torchvision for numpy 2.x compatibility

scikit-image 0.26+ (required by rembg) needs numpy 2.x compatible
packages. Updated torch from 2.1.2 to 2.4+ and torchvision from
0.16.2 to 0.19+ which officially support numpy 2.x.

https://claude.ai/code/session_01MYpjNQXD1fZE4gCweGU4QQ
This commit is contained in:
Claude
2026-01-27 17:37:07 +00:00
parent b4fae0909c
commit 62ad349a83
+3 -2
View File
@@ -19,6 +19,7 @@ opencv-python-headless==4.9.0.80
onnxruntime>=1.17.0
rembg>=2.0.70
# SAM (Segment Anything) for smart object selection - runs locally, no API needed
torch==2.1.2
torchvision==0.16.2
# Using torch 2.4+ for numpy 2.x compatibility (required by scikit-image 0.26+)
torch>=2.4.0
torchvision>=0.19.0
segment-anything @ git+https://github.com/facebookresearch/segment-anything.git