SDPose: resize input always (#13349)

This commit is contained in:
Jukka Seppänen
2026-04-11 00:26:55 +03:00
committed by GitHub
parent b920bdd77d
commit a134423890
3 changed files with 42 additions and 36 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ class HeatmapHead(torch.nn.Module):
origin_max = np.max(hm[k])
dr = np.zeros((H + 2 * border, W + 2 * border), dtype=np.float32)
dr[border:-border, border:-border] = hm[k].copy()
dr = gaussian_filter(dr, sigma=2.0)
dr = gaussian_filter(dr, sigma=2.0, truncate=2.5)
hm[k] = dr[border:-border, border:-border].copy()
cur_max = np.max(hm[k])
if cur_max > 0: