From 22e9a2639eecc9a8bf3c34e4fba6106c2f253ee7 Mon Sep 17 00:00:00 2001 From: Yuze Ma Date: Tue, 12 Sep 2023 16:02:30 -0700 Subject: [PATCH] fix(sam) : update doc --- advanced/segment-anything/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/advanced/segment-anything/README.md b/advanced/segment-anything/README.md index 7f02512..4ad19e2 100644 --- a/advanced/segment-anything/README.md +++ b/advanced/segment-anything/README.md @@ -13,3 +13,14 @@ Technically, this demo shows how to: - use the python client to connect and interact with the deployment in nontrivial ways. Check out `sam.py` for the actual implementation, and `segment-anything.ipynb` for a notebook demonstration. + +To run it on Lepton AI platform, you can use the following command: + +```bash +# Create a photon +lep photon create -n sam -m py:github.com/leptonai/examples.git:advanced/segment-anything/sam.py +# Push the photon to the platform +lep photon push -n sam +# Run the SAM remotely +lep photon run -n sam --resource-shape gpu.a10 +```