RashiAgarwal
commited on
Commit
·
917ece0
1
Parent(s):
6fb39a4
Update display.py
Browse files- display.py +1 -1
display.py
CHANGED
@@ -15,7 +15,7 @@ def inference(image: np.ndarray, iou_thresh: float = 0.5, thresh: float = 0.5,sh
|
|
15 |
# iou_thresh = 0.75
|
16 |
# thresh = 0.75
|
17 |
scaled_anchors = config.SCALED_ANCHORS
|
18 |
-
cam = YoloCAM(model=model, target_layers=[model.layers.28.conv], use_cuda=False)
|
19 |
transforms = A.Compose(
|
20 |
[
|
21 |
A.LongestMaxSize(max_size=config.IMAGE_SIZE),
|
|
|
15 |
# iou_thresh = 0.75
|
16 |
# thresh = 0.75
|
17 |
scaled_anchors = config.SCALED_ANCHORS
|
18 |
+
cam = YoloCAM(model=model, target_layers=[model.layers.26.conv,model.layers.28.conv], use_cuda=False)
|
19 |
transforms = A.Compose(
|
20 |
[
|
21 |
A.LongestMaxSize(max_size=config.IMAGE_SIZE),
|