Visitar URL original
make CTD `GenerativeSampler` visibility-aware by deruyter92 · Pull Request #3305 · DeepLabCut/DeepLabCut · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
make GenerativeSampler visibility-aware
  • Loading branch information
deruyter92 committed May 4, 2026
commit 9663286aab8f96df431df5a19a3d12ac42476e0d
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ def __call__(

N = 500 # TODO: do not know how this is set
for j in range(self.num_keypoints):
# Skip unlabeled / invisible GT joints. Synthesizing a conditional
# keypoint for them creates a spurious cue and biases CTD training.
# Previously, this was prevented implicitly by NaN propagation; now
# we make the contract explicit. (Required since PR #2995)
if keypoints[j, 2] <= 0:
synth_joints[j] = 0 # (x, y, vis) = (0, 0, 0)
continue

# source keypoint position candidates to generate error on that (gt, swap, inv, swap+inv)
coord_list = []
# on top of gt
Expand Down
Loading