-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Issue Description:
I've noticed that in the two code files, test_on_pod.py and pointodysseydataset_fullseq.py, the valid variable is handled inconsistently:
pips2/test_on_pod.py at 8b5bd9ecb27274f76f75fcaeff0dbdf13de0b977 · aharley/pips2
valids = d['valids'].cuda().float() # B,S,N
- In
test_on_pod.py, thevalidvariable seems to be used directly and can contain bothTrueandFalsevalues, which is potentially problematic since it is assumed that it should be strictlyTrue.
valids = (visibs<2).astype(np.float32)
- In
pointodysseydataset_fullseq.py, thevalidsvariable is generated from the expressionvalids = (visibs < 2).astype(np.float32). From my review ofvisibs, it only containsTrueandFalsevalues. This means thatvalidsshould also only containTruevalues, leading to a mismatch in expectations between these two files.
Question:
Why is the valid variable being handled differently in these two locations? Specifically, why is the valid variable in test_on_pod.py allowed to contain both True and False values, whereas in pointodysseydataset_fullseq.py, it is assumed to only contain True values? Would it be possible to align the usage of valid across these files to ensure consistency?
Thanks in advance for your help!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels