Skip to content

Commit

Permalink
add: init import
Browse files Browse the repository at this point in the history
  • Loading branch information
mjq2020 committed Dec 22, 2023
1 parent 2a487c0 commit 8eb4ec0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion sscma/datasets/transforms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .formatting import PackSensorInputs
from .loading import LoadSensorFromFile
from .wrappers import MutiBranchPipe

__all__ = ['PackSensorInputs', 'LoadSensorFromFile']
__all__ = ['PackSensorInputs', 'LoadSensorFromFile', 'MutiBranchPipe']
2 changes: 1 addition & 1 deletion sscma/datasets/transforms/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def transform(self, results: Dict) -> Optional[Union[Dict, Tuple[List, List]]]:
multi_results[branch] = {'inputs': None, 'data_samples': None}
for branch, pipeline in self.branch_pipelines.items():
branch_results = pipeline(copy.deepcopy(results))
if branch == 'unsup_teacher':
if branch == self.piece_key:
results['img'] = branch_results['inputs'].permute(1, 2, 0).cpu().numpy()
# If one branch pipeline returns None,
# it will sample another data from dataset.
Expand Down
2 changes: 1 addition & 1 deletion tools/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import sscma.evaluation # noqa
import sscma.models # noqa
import sscma.visualization # noqa
from sscma.utils.check import check_lib
from sscma.utils.check import check_lib # noqa


def parse_args():
Expand Down

0 comments on commit 8eb4ec0

Please sign in to comment.