Skip to content

Commit 981983c

Browse files
author
Baichuan Sun
committed
Add: README.md documentation
1 parent 3aef969 commit 981983c

File tree

10 files changed

+715
-1622
lines changed

10 files changed

+715
-1622
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,4 @@ dmypy.json
138138
# Pyre type checker
139139
.pyre/
140140

141+
.DS_Store

README.md

Lines changed: 582 additions & 0 deletions
Large diffs are not rendered by default.

deployment/handler.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def initialize(self, ctx):
3434
else "cpu"
3535
)
3636
model_dir = properties.get("model_dir")
37-
print(model_dir)
3837

3938
manifest = ctx.manifest
4039
logger.error(manifest)
@@ -64,7 +63,7 @@ def preprocess(self, data):
6463
if image is None:
6564
image = data[0].get("body")
6665

67-
chipstack_transform = transforms.Compose(
66+
image_transform = transforms.Compose(
6867
[
6968
# must be consistent with model training
7069
transforms.Resize((96, 128)),
@@ -78,7 +77,7 @@ def preprocess(self, data):
7877
image = Image.open(io.BytesIO(image)).convert(
7978
"RGB"
8079
) # in case of an alpha channel
81-
image = chipstack_transform(image).unsqueeze_(0)
80+
image = image_transform(image).unsqueeze_(0)
8281
return image
8382

8483
def inference(self, img):

model_store/.gitkeep

Whitespace-only changes.

notebook/01_U-net_Modelling.ipynb

Lines changed: 13 additions & 245 deletions
Large diffs are not rendered by default.

notebook/02_Inference_in_pytorch.ipynb

Lines changed: 41 additions & 748 deletions
Large diffs are not rendered by default.

notebook/03_TorchServe.ipynb

Lines changed: 14 additions & 243 deletions
Large diffs are not rendered by default.

notebook/04_SageMaker.ipynb

Lines changed: 62 additions & 383 deletions
Large diffs are not rendered by default.

sample/fastsource.png

311 KB
Loading

sample/sample_pred_mask.png

13.7 KB
Loading

0 commit comments

Comments
 (0)