Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Merge branch 'flash-ci/functions-to-classes' of github.com:Lightning-…
Browse files Browse the repository at this point in the history
…AI/lightning-flash into flash-ci/functions-to-classes
  • Loading branch information
krshrimali committed Aug 12, 2022
2 parents ef9b0c0 + ccc7e24 commit 8e03fd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .azure-pipelines/testing-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ jobs:
- bash: |
# python -m pip install "pip==20.1"
if [ "${{config}}" == "icevision" ]; then pip install '.[image]' icevision icedata; elif [ "${{config}}" == "vissl" ]; then pip install '.[image]'; else pip install '.[${{config}}]'; fi
if [ "${{config}}" == "icevision" ]; then pip install git+https://github.com/rwightman/efficientdet-pytorch.git@79d26d8982b9f8e1f27d9f896e38012ac250fd26; fi
if [ "${{config}}" == "icevision" ]; then pip install '.[image]' icevision effdet icedata; elif [ "${{config}}" == "vissl" ]; then pip install '.[image]'; else pip install '.[${{config}}]'; fi
pip install '.[test]' --upgrade-strategy only-if-needed
pip list
displayName: 'Install dependencies'
Expand Down
12 changes: 6 additions & 6 deletions flash/core/integrations/icevision/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ def process_train_dataset(
input_transform = input_transform or self.input_transform
if input_transform is not None:
input_transform.inject_collate_fn(data_loader.collate_fn)
data_loader = self._update_collate_fn_dataloader(
create_worker_input_transform_processor(RunningStage.TRAINING, input_transform), data_loader
)
data_loader = self._update_collate_fn_dataloader(
create_worker_input_transform_processor(RunningStage.TRAINING, input_transform), data_loader
)
return data_loader

def process_val_dataset(
Expand Down Expand Up @@ -187,9 +187,9 @@ def process_val_dataset(
input_transform = input_transform or self.input_transform
if input_transform is not None:
input_transform.inject_collate_fn(data_loader.collate_fn)
data_loader = self._update_collate_fn_dataloader(
create_worker_input_transform_processor(RunningStage.VALIDATING, input_transform), data_loader
)
data_loader = self._update_collate_fn_dataloader(
create_worker_input_transform_processor(RunningStage.VALIDATING, input_transform), data_loader
)
return data_loader

def process_test_dataset(
Expand Down

0 comments on commit 8e03fd7

Please sign in to comment.