Upload app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from base64 import b64encode
|
2 |
from io import BytesIO
|
3 |
from math import ceil
|
4 |
|
@@ -27,7 +27,7 @@ from CLIP_Explainability.vit_cam import (
|
|
27 |
|
28 |
from pytorch_grad_cam.grad_cam import GradCAM
|
29 |
|
30 |
-
RUN_LITE =
|
31 |
|
32 |
MAX_IMG_WIDTH = 500
|
33 |
MAX_IMG_HEIGHT = 800
|
|
|
1 |
+
# from base64 import b64encode
|
2 |
from io import BytesIO
|
3 |
from math import ceil
|
4 |
|
|
|
27 |
|
28 |
from pytorch_grad_cam.grad_cam import GradCAM
|
29 |
|
30 |
+
RUN_LITE = False # Load vision model for CAM viz explainability for M-CLIP only
|
31 |
|
32 |
MAX_IMG_WIDTH = 500
|
33 |
MAX_IMG_HEIGHT = 800
|