Skip to content

Commit

Permalink
remove use_cuda param
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyjinjing committed Aug 29, 2024
1 parent cda6ea9 commit 15a9a21
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions usage_examples/vit_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@ def reshape_transform(tensor, height=14, width=14):
if args.method == "ablationcam":
cam = methods[args.method](model=model,
target_layers=target_layers,
use_cuda=args.use_cuda,
reshape_transform=reshape_transform,
ablation_layer=AblationLayerVit())
else:
cam = methods[args.method](model=model,
target_layers=target_layers,
use_cuda=args.use_cuda,
reshape_transform=reshape_transform)

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

0 comments on commit 15a9a21

Please sign in to comment.