Skip to content

Odsc 38627/huggingface conda pack #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ Load a `ImageSegmentationPipeline <https://huggingface.co/docs/transformers/main
'label': 'cat',
'mask': <PIL.Image.Image image mode=L size=960x686>}]

Prepare a Custom Conda Pack
===========================

To do a image segmentation model, you can start with the PyTorch conda pack with slug ``pytorch110_p38_cpu_v1``.

#. Run ``pip install timm`` since image segmentation model requires ``timm``.
#. Then use ``odsc conda init -b your_bucket_name -n bucket_namespace`` to config where to store the published conda pack if you have not done this yet.
#. Lastly, run ``odsc conda publish -s pytorch110_p38_cpu_v1``.
#. Once it's done, you can find the path of the pusblished conda pack under the Environment Explorer ``Published`` tab. Refresh the page if you cannot find it.

Prepare Model Artifact
======================

Expand Down