def _read_target_visible(self, seq_path):
    occlusion_file = os.path.join(seq_path, 'full_occlusion.txt')
    out_of_view_file = os.path.join(seq_path, 'out_of_view.txt')
    with open(occlusion_file, 'r', newline='') as f:
        occlusion = torch.ByteTensor([int(v) for v in list(csv.reader(f))[0]])
    with open(out_of_view_file, 'r') as f:
        out_of_view = torch.ByteTensor([int(v) for v in list(csv.reader(f))[0]])
    target_visible = ((~ occlusion) & (~ out_of_view))
    return target_visible
def _read_target_visible(self, seq_path):
    occlusion_file = os.path.join(seq_path, 'full_occlusion.txt')
    out_of_view_file = os.path.join(seq_path, 'out_of_view.txt')
    with open(occlusion_file, 'r', newline=) as f:
        occlusion = torch.ByteTensor([int(v) for v in list(csv.reader(f))[0]])
    with open(out_of_view_file, 'r') as f:
        out_of_view = torch.ByteTensor([int(v) for v in list(csv.reader(f))[0]])
    target_visible = ((~ occlusion) & (~ out_of_view))
    return target_visible