Commit
·
63e96fc
1
Parent(s):
18ff9ad
Update display.py
Browse files- display.py +1 -1
display.py
CHANGED
@@ -17,7 +17,7 @@ def inference(image: np.ndarray, iou_thresh: float = 0.5, thresh: float = 0.5,sh
|
|
17 |
scaled_anchors = config.SCALED_ANCHORS
|
18 |
|
19 |
backbone = model
|
20 |
-
target_layer_list =
|
21 |
|
22 |
cam = YoloCAM(model=model, target_layers = target_layer_list, use_cuda=False)
|
23 |
transforms = A.Compose(
|
|
|
17 |
scaled_anchors = config.SCALED_ANCHORS
|
18 |
|
19 |
backbone = model
|
20 |
+
target_layer_list = backbone.children()[-2:]
|
21 |
|
22 |
cam = YoloCAM(model=model, target_layers = target_layer_list, use_cuda=False)
|
23 |
transforms = A.Compose(
|