Advanced AI Explainability for computer vision. Support for CNNs, Vision Transformers, Classification, Object detection, Segmentation, Image similarity and more.
hi bro, i have a error happening
1) i train a model using autocaste.
2) i vis the result using trained model, while it coms error like this:
how can i solve this error?
the pipeline like this:
self.target_layers = [self.model.model.layer4[-1]] # resnt18
self.cam = GradCAM(model=self.model, target_layers=self.target_layers, use_cuda=True)
hi bro, i have a error happening 1) i train a model using autocaste. 2) i vis the result using trained model, while it coms error like this:
how can i solve this error? the pipeline like this: self.target_layers = [self.model.model.layer4[-1]] # resnt18 self.cam = GradCAM(model=self.model, target_layers=self.target_layers, use_cuda=True)
load img
....
forward it
grayscale_cam = self.cam(input_tensor=aug_im)