Skip to content

Commit 18144f2

Browse files
authored
remove use_cuda param (#524)
1 parent cda6ea9 commit 18144f2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

usage_examples/vit_example.py

-2
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,11 @@ def reshape_transform(tensor, height=14, width=14):
9898
if args.method == "ablationcam":
9999
cam = methods[args.method](model=model,
100100
target_layers=target_layers,
101-
use_cuda=args.use_cuda,
102101
reshape_transform=reshape_transform,
103102
ablation_layer=AblationLayerVit())
104103
else:
105104
cam = methods[args.method](model=model,
106105
target_layers=target_layers,
107-
use_cuda=args.use_cuda,
108106
reshape_transform=reshape_transform)
109107

110108
rgb_img = cv2.imread(args.image_path, 1)[:, :, ::-1]

0 commit comments

Comments
 (0)