-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(hugging_face): 重构代码并适配 Hugging Face 格式
- 重命名模型和适配器类,统一命名风格 - 移除不必要的模型导入和权重加载逻辑 - 简化推理函数,专注于 Cloud-Adapter 模型 - 更新配置文件和模型定义,使用新的类名 - 添加 requirements.txt 文件,列出项目依赖
- Loading branch information
1 parent
67e5d93
commit be8ce54
Showing
10 changed files
with
60 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Cloud Adapter | ||
emoji: 🏢 | ||
colorFrom: red | ||
colorTo: purple | ||
sdk: gradio | ||
sdk_version: 5.6.0 | ||
app_file: app.py | ||
pinned: false | ||
license: apache-2.0 | ||
--- | ||
|
||
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
einops==0.8.0 | ||
segmentation_models_pytorch | ||
gradio==4.44.1 | ||
huggingface-hub==0.26.0 | ||
image_dehazer==0.0.9 | ||
|
||
mmcv==2.1.0 | ||
-f https://download.openmmlab.com/mmcv/dist/cpu/torch2.0/index.html | ||
|
||
mmdet==3.3.0 | ||
mmengine==0.10.5 | ||
mmpretrain==1.2.0 | ||
mmsegmentation==1.2.2 | ||
timm==0.9.2 | ||
|
||
|
||
torch==2.0.1 | ||
-f https://download.pytorch.org/whl/cpu | ||
torchvision==0.15.2 | ||
torchaudio==2.0.2 | ||
ftfy | ||
regex | ||
yacs | ||
numpy==1.24.2 |