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

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Dec 13, 2021
1 parent 9e8891a commit 2ed9194
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flash/audio/speech_recognition/output_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def per_batch_transform(self, batch: Any) -> Any:

def __getstate__(self): # TODO: Find out why this is being pickled
state = self.__dict__.copy()
state.pop("_tokenizer")
state.pop("_tokenizer", None)
return state

def __setstate__(self, state):
Expand Down
4 changes: 2 additions & 2 deletions flash/image/segmentation/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
OUTPUT_TRANSFORM_TYPE,
OUTPUT_TYPE,
)
from flash.image.data import ImageDeserializer
from flash.image.segmentation.backbones import SEMANTIC_SEGMENTATION_BACKBONES
from flash.image.segmentation.heads import SEMANTIC_SEGMENTATION_HEADS
from flash.image.segmentation.input import SemanticSegmentationDeserializer
from flash.image.segmentation.output import SegmentationLabelsOutput
from flash.image.segmentation.transforms import SemanticSegmentationInputTransform

Expand Down Expand Up @@ -184,7 +184,7 @@ def serve(
host: str = "127.0.0.1",
port: int = 8000,
sanity_check: bool = True,
input_cls: Optional[Type[ServeInput]] = ImageDeserializer,
input_cls: Optional[Type[ServeInput]] = SemanticSegmentationDeserializer,
transform: INPUT_TRANSFORM_TYPE = SemanticSegmentationInputTransform,
transform_kwargs: Optional[Dict] = None,
) -> Composition:
Expand Down

0 comments on commit 2ed9194

Please sign in to comment.