Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added new TV models to demo #184

Merged
merged 1 commit into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion demo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@
from torchcam.utils import overlay_mask

CAM_METHODS = ["CAM", "GradCAM", "GradCAMpp", "SmoothGradCAMpp", "ScoreCAM", "SSCAM", "ISCAM", "XGradCAM", "LayerCAM"]
TV_MODELS = ["resnet18", "resnet50", "mobilenet_v2", "mobilenet_v3_small", "mobilenet_v3_large"]
TV_MODELS = [
"resnet18",
"resnet50",
"mobilenet_v3_small",
"mobilenet_v3_large",
"regnet_y_400mf",
"convnext_tiny",
"convnext_small",
]
LABEL_MAP = requests.get(
"https://raw.githubusercontent.com/anishathalye/imagenet-simple-labels/master/imagenet-simple-labels.json"
).json()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ docs = [
]
demo = [
"streamlit>=0.65.0,<2.0.0",
"torchvision>=0.8.0,<1.0.0",
"torchvision>=0.12.0,<1.0.0",
]
dev = [
# test
Expand Down