Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1572 authored Aug 1, 2024
1 parent 3cf111d commit 4401ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyha_analyzer/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def valid(model: Any,


# softmax predictions
log_pred = F.sigmoid(torch.cat(log_pred)).to(cfg.device)
log_pred = F.sigmoid(torch.cat(log_pred)).cpu() #.to(cfg.device)

dataset = data_loader.dataset # type: ignore
cmap, smap = map_metric(log_pred, torch.cat(log_label), dataset.class_dist)
Expand Down

0 comments on commit 4401ffe

Please sign in to comment.