PubAccount commited on
Commit
d6a755c
·
verified ·
1 Parent(s): 635323a

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +3 -8
requirements.txt CHANGED
@@ -9,15 +9,10 @@ spaces
9
  torch>=2.1.0
10
  torchvision>=0.16.0
11
 
12
- # ── OpenMMLab 核心
13
- # ⚠️ mmcv 包含 CUDA 算子(DeformConv2d)需与 torch / CUDA 版本严格对应
14
- # 方案 A Hugging Face Space Dockerfile 中执行:
15
- # pip install openmim && mim install "mmcv>=2.1.0" "mmsegmentation>=1.2.0"
16
- # 方案 B 直接在 requirements.txt 指定预编译 wheel(按实际环境修改 URL):
17
- --extra-index-url https://download.openmmlab.com/mmcv/dist/cu121/torch2.1/index.html
18
  mmengine>=0.10.0
19
- mmcv>=2.1.0
20
- mmsegmentation>=1.2.0
21
 
22
  # ── Hugging Face 生态
23
  diffusers>=0.27.0
 
9
  torch>=2.1.0
10
  torchvision>=0.16.0
11
 
12
+ # ── OpenMMLab 安装器(自动下载匹配当前 torch/CUDA 版本的预编译 wheel)
13
+ # ⚠️ mmcv / mmsegmentation 不在此处声明 app.py 启动时通过 mim 安装
14
+ openmim
 
 
 
15
  mmengine>=0.10.0
 
 
16
 
17
  # ── Hugging Face 生态
18
  diffusers>=0.27.0