Skip to content

Commit

Permalink
modify: unsup student get
Browse files Browse the repository at this point in the history
  • Loading branch information
mjq2020 authored and LynnL4 committed Nov 24, 2023
1 parent 767067e commit 587ecee
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sscma/datasets/transforms/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ def transform(self, results: Dict) -> Optional[Union[Dict, Tuple[List, List]]]:
for branch, pipeline in self.branch_pipelines.items():
branch_results = pipeline(copy.deepcopy(results))
if branch == 'unsup_teacher':
teach = branch_results['inputs'].permute(1, 2, 0).cpu().numpy()
results['img'] = branch_results['inputs'].permute(1, 2, 0).cpu().numpy()

elif branch == 'unsup_student':
stu = branch_results['inputs'].permute(1, 2, 0).cpu().numpy()
# If one branch pipeline returns None,
# it will sample another data from dataset.
if branch_results is None:
Expand Down

0 comments on commit 587ecee

Please sign in to comment.