Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .github/workflows/update_space.yml +28 -0
- README.md +1 -1
- demo.py +6 -1
- pytorch_grad_cam/__pycache__/__init__.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/ablation_cam.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/ablation_layer.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/activations_and_gradients.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/base_cam.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/eigen_cam.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/eigen_grad_cam.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/fullgrad_cam.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/grad_cam.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/grad_cam_elementwise.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/grad_cam_plusplus.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/guided_backprop.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/hirescam.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/layer_cam.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/random_cam.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/score_cam.cpython-310.pyc +0 -0
- pytorch_grad_cam/__pycache__/xgrad_cam.cpython-310.pyc +0 -0
- pytorch_grad_cam/feature_factorization/__pycache__/__init__.cpython-310.pyc +0 -0
- pytorch_grad_cam/feature_factorization/__pycache__/deep_feature_factorization.cpython-310.pyc +0 -0
- pytorch_grad_cam/metrics/__pycache__/__init__.cpython-310.pyc +0 -0
- pytorch_grad_cam/metrics/__pycache__/cam_mult_image.cpython-310.pyc +0 -0
- pytorch_grad_cam/metrics/__pycache__/perturbation_confidence.cpython-310.pyc +0 -0
- pytorch_grad_cam/metrics/__pycache__/road.cpython-310.pyc +0 -0
- pytorch_grad_cam/utils/__pycache__/__init__.cpython-310.pyc +0 -0
- pytorch_grad_cam/utils/__pycache__/find_layers.cpython-310.pyc +0 -0
- pytorch_grad_cam/utils/__pycache__/image.cpython-310.pyc +0 -0
- pytorch_grad_cam/utils/__pycache__/model_targets.cpython-310.pyc +0 -0
- pytorch_grad_cam/utils/__pycache__/reshape_transforms.cpython-310.pyc +0 -0
- pytorch_grad_cam/utils/__pycache__/svd_on_activations.cpython-310.pyc +0 -0
- timm/__pycache__/__init__.cpython-310.pyc +0 -0
- timm/__pycache__/version.cpython-310.pyc +0 -0
- timm/data/__pycache__/__init__.cpython-310.pyc +0 -0
- timm/data/__pycache__/auto_augment.cpython-310.pyc +0 -0
- timm/data/__pycache__/config.cpython-310.pyc +0 -0
- timm/data/__pycache__/constants.cpython-310.pyc +0 -0
- timm/data/__pycache__/dataset.cpython-310.pyc +0 -0
- timm/data/__pycache__/dataset_factory.cpython-310.pyc +0 -0
- timm/data/__pycache__/dataset_info.cpython-310.pyc +0 -0
- timm/data/__pycache__/distributed_sampler.cpython-310.pyc +0 -0
- timm/data/__pycache__/imagenet_info.cpython-310.pyc +0 -0
- timm/data/__pycache__/loader.cpython-310.pyc +0 -0
- timm/data/__pycache__/mixup.cpython-310.pyc +0 -0
- timm/data/__pycache__/random_erasing.cpython-310.pyc +0 -0
- timm/data/__pycache__/real_labels.cpython-310.pyc +0 -0
- timm/data/__pycache__/transforms.cpython-310.pyc +0 -0
- timm/data/__pycache__/transforms_factory.cpython-310.pyc +0 -0
- timm/data/readers/__pycache__/__init__.cpython-310.pyc +0 -0
.github/workflows/update_space.yml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Run Python script
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- new
|
| 7 |
+
|
| 8 |
+
jobs:
|
| 9 |
+
build:
|
| 10 |
+
runs-on: ubuntu-latest
|
| 11 |
+
|
| 12 |
+
steps:
|
| 13 |
+
- name: Checkout
|
| 14 |
+
uses: actions/checkout@v2
|
| 15 |
+
|
| 16 |
+
- name: Set up Python
|
| 17 |
+
uses: actions/setup-python@v2
|
| 18 |
+
with:
|
| 19 |
+
python-version: '3.9'
|
| 20 |
+
|
| 21 |
+
- name: Install Gradio
|
| 22 |
+
run: python -m pip install gradio
|
| 23 |
+
|
| 24 |
+
- name: Log in to Hugging Face
|
| 25 |
+
run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
|
| 26 |
+
|
| 27 |
+
- name: Deploy to Spaces
|
| 28 |
+
run: gradio deploy
|
README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
title: cs-mixer
|
| 3 |
app_file: demo.py
|
| 4 |
sdk: gradio
|
| 5 |
-
sdk_version: 3.
|
| 6 |
---
|
| 7 |
# PyTorch Image Models
|
| 8 |
- [Sponsors](#sponsors)
|
|
|
|
| 2 |
title: cs-mixer
|
| 3 |
app_file: demo.py
|
| 4 |
sdk: gradio
|
| 5 |
+
sdk_version: 3.38.0
|
| 6 |
---
|
| 7 |
# PyTorch Image Models
|
| 8 |
- [Sponsors](#sponsors)
|
demo.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
import os, cv2, time, math
|
| 3 |
print("=> Loading libraries...")
|
|
@@ -117,4 +119,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(font=[gr.themes.GoogleFont("DM Sans"),
|
|
| 117 |
with gr.Row():
|
| 118 |
gr.Examples([f"../example-imgs/{idx}.png" for idx in indices], inputs=input_image, outputs=[softmax, grad_cam], fn=predict, run_on_click=True)
|
| 119 |
|
| 120 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
os.system("pip install datasets einops cupy-cuda11x tabulate opencv-python -U")
|
| 3 |
|
| 4 |
import os, cv2, time, math
|
| 5 |
print("=> Loading libraries...")
|
|
|
|
| 119 |
with gr.Row():
|
| 120 |
gr.Examples([f"../example-imgs/{idx}.png" for idx in indices], inputs=input_image, outputs=[softmax, grad_cam], fn=predict, run_on_click=True)
|
| 121 |
|
| 122 |
+
demo.launch(
|
| 123 |
+
share=False, debug=False, allowed_paths=["../example-imgs"], server_name="0.0.0.0", # ssl_verify=False,
|
| 124 |
+
server_port=8000, # ssl_certfile="/workspace/openssl/cert.pem", ssl_keyfile="/workspace/openssl/key.pem"
|
| 125 |
+
)
|
pytorch_grad_cam/__pycache__/__init__.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/__init__.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/__init__.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/ablation_cam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/ablation_cam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/ablation_cam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/ablation_layer.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/ablation_layer.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/ablation_layer.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/activations_and_gradients.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/activations_and_gradients.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/activations_and_gradients.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/base_cam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/base_cam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/base_cam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/eigen_cam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/eigen_cam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/eigen_cam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/eigen_grad_cam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/eigen_grad_cam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/eigen_grad_cam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/fullgrad_cam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/fullgrad_cam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/fullgrad_cam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/grad_cam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/grad_cam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/grad_cam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/grad_cam_elementwise.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/grad_cam_elementwise.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/grad_cam_elementwise.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/grad_cam_plusplus.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/grad_cam_plusplus.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/grad_cam_plusplus.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/guided_backprop.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/guided_backprop.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/guided_backprop.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/hirescam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/hirescam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/hirescam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/layer_cam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/layer_cam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/layer_cam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/random_cam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/random_cam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/random_cam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/score_cam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/score_cam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/score_cam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/__pycache__/xgrad_cam.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/__pycache__/xgrad_cam.cpython-310.pyc and b/pytorch_grad_cam/__pycache__/xgrad_cam.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/feature_factorization/__pycache__/__init__.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/feature_factorization/__pycache__/__init__.cpython-310.pyc and b/pytorch_grad_cam/feature_factorization/__pycache__/__init__.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/feature_factorization/__pycache__/deep_feature_factorization.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/feature_factorization/__pycache__/deep_feature_factorization.cpython-310.pyc and b/pytorch_grad_cam/feature_factorization/__pycache__/deep_feature_factorization.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/metrics/__pycache__/__init__.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/metrics/__pycache__/__init__.cpython-310.pyc and b/pytorch_grad_cam/metrics/__pycache__/__init__.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/metrics/__pycache__/cam_mult_image.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/metrics/__pycache__/cam_mult_image.cpython-310.pyc and b/pytorch_grad_cam/metrics/__pycache__/cam_mult_image.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/metrics/__pycache__/perturbation_confidence.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/metrics/__pycache__/perturbation_confidence.cpython-310.pyc and b/pytorch_grad_cam/metrics/__pycache__/perturbation_confidence.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/metrics/__pycache__/road.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/metrics/__pycache__/road.cpython-310.pyc and b/pytorch_grad_cam/metrics/__pycache__/road.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/utils/__pycache__/__init__.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/utils/__pycache__/__init__.cpython-310.pyc and b/pytorch_grad_cam/utils/__pycache__/__init__.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/utils/__pycache__/find_layers.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/utils/__pycache__/find_layers.cpython-310.pyc and b/pytorch_grad_cam/utils/__pycache__/find_layers.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/utils/__pycache__/image.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/utils/__pycache__/image.cpython-310.pyc and b/pytorch_grad_cam/utils/__pycache__/image.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/utils/__pycache__/model_targets.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/utils/__pycache__/model_targets.cpython-310.pyc and b/pytorch_grad_cam/utils/__pycache__/model_targets.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/utils/__pycache__/reshape_transforms.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/utils/__pycache__/reshape_transforms.cpython-310.pyc and b/pytorch_grad_cam/utils/__pycache__/reshape_transforms.cpython-310.pyc differ
|
|
|
pytorch_grad_cam/utils/__pycache__/svd_on_activations.cpython-310.pyc
CHANGED
|
Binary files a/pytorch_grad_cam/utils/__pycache__/svd_on_activations.cpython-310.pyc and b/pytorch_grad_cam/utils/__pycache__/svd_on_activations.cpython-310.pyc differ
|
|
|
timm/__pycache__/__init__.cpython-310.pyc
CHANGED
|
Binary files a/timm/__pycache__/__init__.cpython-310.pyc and b/timm/__pycache__/__init__.cpython-310.pyc differ
|
|
|
timm/__pycache__/version.cpython-310.pyc
CHANGED
|
Binary files a/timm/__pycache__/version.cpython-310.pyc and b/timm/__pycache__/version.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/__init__.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/__init__.cpython-310.pyc and b/timm/data/__pycache__/__init__.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/auto_augment.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/auto_augment.cpython-310.pyc and b/timm/data/__pycache__/auto_augment.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/config.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/config.cpython-310.pyc and b/timm/data/__pycache__/config.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/constants.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/constants.cpython-310.pyc and b/timm/data/__pycache__/constants.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/dataset.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/dataset.cpython-310.pyc and b/timm/data/__pycache__/dataset.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/dataset_factory.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/dataset_factory.cpython-310.pyc and b/timm/data/__pycache__/dataset_factory.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/dataset_info.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/dataset_info.cpython-310.pyc and b/timm/data/__pycache__/dataset_info.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/distributed_sampler.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/distributed_sampler.cpython-310.pyc and b/timm/data/__pycache__/distributed_sampler.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/imagenet_info.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/imagenet_info.cpython-310.pyc and b/timm/data/__pycache__/imagenet_info.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/loader.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/loader.cpython-310.pyc and b/timm/data/__pycache__/loader.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/mixup.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/mixup.cpython-310.pyc and b/timm/data/__pycache__/mixup.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/random_erasing.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/random_erasing.cpython-310.pyc and b/timm/data/__pycache__/random_erasing.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/real_labels.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/real_labels.cpython-310.pyc and b/timm/data/__pycache__/real_labels.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/transforms.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/transforms.cpython-310.pyc and b/timm/data/__pycache__/transforms.cpython-310.pyc differ
|
|
|
timm/data/__pycache__/transforms_factory.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/__pycache__/transforms_factory.cpython-310.pyc and b/timm/data/__pycache__/transforms_factory.cpython-310.pyc differ
|
|
|
timm/data/readers/__pycache__/__init__.cpython-310.pyc
CHANGED
|
Binary files a/timm/data/readers/__pycache__/__init__.cpython-310.pyc and b/timm/data/readers/__pycache__/__init__.cpython-310.pyc differ
|
|
|