Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -180,13 +180,13 @@ provisioned in the cloud. Once the job is submitted, you can navigate to a
|
|
| 180 |
provided job URL to view a variety of on-device performance metrics.
|
| 181 |
```python
|
| 182 |
get_sam_decoder()_profile_job = hub.submit_profile_job(
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
get_sam_encoder()_profile_job = hub.submit_profile_job(
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
|
| 191 |
```
|
| 192 |
|
|
@@ -197,17 +197,17 @@ on sample input data on the same cloud hosted device.
|
|
| 197 |
```python
|
| 198 |
get_sam_decoder()_input_data = get_sam_decoder()_model.sample_inputs()
|
| 199 |
get_sam_decoder()_inference_job = hub.submit_inference_job(
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
get_sam_decoder()_inference_job.download_output_data()
|
| 205 |
get_sam_encoder()_input_data = get_sam_encoder()_model.sample_inputs()
|
| 206 |
get_sam_encoder()_inference_job = hub.submit_inference_job(
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
get_sam_encoder()_inference_job.download_output_data()
|
| 212 |
|
| 213 |
```
|
|
|
|
| 180 |
provided job URL to view a variety of on-device performance metrics.
|
| 181 |
```python
|
| 182 |
get_sam_decoder()_profile_job = hub.submit_profile_job(
|
| 183 |
+
model=get_sam_decoder()_target_model,
|
| 184 |
+
device=device,
|
| 185 |
+
)
|
| 186 |
get_sam_encoder()_profile_job = hub.submit_profile_job(
|
| 187 |
+
model=get_sam_encoder()_target_model,
|
| 188 |
+
device=device,
|
| 189 |
+
)
|
| 190 |
|
| 191 |
```
|
| 192 |
|
|
|
|
| 197 |
```python
|
| 198 |
get_sam_decoder()_input_data = get_sam_decoder()_model.sample_inputs()
|
| 199 |
get_sam_decoder()_inference_job = hub.submit_inference_job(
|
| 200 |
+
model=get_sam_decoder()_target_model,
|
| 201 |
+
device=device,
|
| 202 |
+
inputs=get_sam_decoder()_input_data,
|
| 203 |
+
)
|
| 204 |
get_sam_decoder()_inference_job.download_output_data()
|
| 205 |
get_sam_encoder()_input_data = get_sam_encoder()_model.sample_inputs()
|
| 206 |
get_sam_encoder()_inference_job = hub.submit_inference_job(
|
| 207 |
+
model=get_sam_encoder()_target_model,
|
| 208 |
+
device=device,
|
| 209 |
+
inputs=get_sam_encoder()_input_data,
|
| 210 |
+
)
|
| 211 |
get_sam_encoder()_inference_job.download_output_data()
|
| 212 |
|
| 213 |
```
|