Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,6 +66,7 @@ def predict(input_image:Image.Image, true_label:str):
|
|
66 |
|
67 |
target_layers=[model.block8.branch1[-1]]
|
68 |
use_cuda = True if torch.cuda.is_available() else False
|
|
|
69 |
cam = GradCAM(model=model, target_layers=target_layers, use_cuda=use_cuda)
|
70 |
targets = [ClassifierOutputTarget(0)]
|
71 |
|
|
|
66 |
|
67 |
target_layers=[model.block8.branch1[-1]]
|
68 |
use_cuda = True if torch.cuda.is_available() else False
|
69 |
+
print ("Cuda :: "+ use_cuda)
|
70 |
cam = GradCAM(model=model, target_layers=target_layers, use_cuda=use_cuda)
|
71 |
targets = [ClassifierOutputTarget(0)]
|
72 |
|