Skip to content

Commit

Permalink
refactor(hugging_face): 删除冗余文件和代码
Browse files Browse the repository at this point in the history
- 移除 README.md 文件,其中包含已过时或不再需要的信息
- 删除 app.py 中的 name_mapping 字典,简化代码结构
- 移除 requirements.txt 文件,可能由于依赖已内置或不再使用
  • Loading branch information
caixiaoshun committed Nov 22, 2024
1 parent be8ce54 commit a25a27a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 48 deletions.
13 changes: 0 additions & 13 deletions hugging_face/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions hugging_face/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@ def __init__(self, config_path=None, checkpoint_path=None, device="cpu", example
self.img_size = 256 if num_classes == 2 else 512
self.palette = palette
self.legend = self.html_legend(num_classes=num_classes)
self.name_mapping = {
"KappaMask": "kappamask",
"CDNetv1": "cdnetv1",
"CDNetv2": "cdnetv2",
"HRCloudNet": "hrcloudnet",
"MCDNet": "mcdnet",
"SCNN": "scnn",
"DBNet": "dbnet",
"UNetMobv2": "unetmobv2",
"Cloud-Adapter": "cloud-adapter",
}

self.create_ui()

Expand Down
24 changes: 0 additions & 24 deletions hugging_face/requirements.txt

This file was deleted.

0 comments on commit a25a27a

Please sign in to comment.