Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -182,13 +182,13 @@ provisioned in the cloud. Once the job is submitted, you can navigate to a
|
|
182 |
provided job URL to view a variety of on-device performance metrics.
|
183 |
```python
|
184 |
pose_detector_profile_job = hub.submit_profile_job(
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
pose_landmark_detector_profile_job = hub.submit_profile_job(
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
|
193 |
```
|
194 |
|
@@ -199,17 +199,17 @@ on sample input data on the same cloud hosted device.
|
|
199 |
```python
|
200 |
pose_detector_input_data = pose_detector_model.sample_inputs()
|
201 |
pose_detector_inference_job = hub.submit_inference_job(
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
pose_detector_inference_job.download_output_data()
|
207 |
pose_landmark_detector_input_data = pose_landmark_detector_model.sample_inputs()
|
208 |
pose_landmark_detector_inference_job = hub.submit_inference_job(
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
pose_landmark_detector_inference_job.download_output_data()
|
214 |
|
215 |
```
|
|
|
182 |
provided job URL to view a variety of on-device performance metrics.
|
183 |
```python
|
184 |
pose_detector_profile_job = hub.submit_profile_job(
|
185 |
+
model=pose_detector_target_model,
|
186 |
+
device=device,
|
187 |
+
)
|
188 |
pose_landmark_detector_profile_job = hub.submit_profile_job(
|
189 |
+
model=pose_landmark_detector_target_model,
|
190 |
+
device=device,
|
191 |
+
)
|
192 |
|
193 |
```
|
194 |
|
|
|
199 |
```python
|
200 |
pose_detector_input_data = pose_detector_model.sample_inputs()
|
201 |
pose_detector_inference_job = hub.submit_inference_job(
|
202 |
+
model=pose_detector_target_model,
|
203 |
+
device=device,
|
204 |
+
inputs=pose_detector_input_data,
|
205 |
+
)
|
206 |
pose_detector_inference_job.download_output_data()
|
207 |
pose_landmark_detector_input_data = pose_landmark_detector_model.sample_inputs()
|
208 |
pose_landmark_detector_inference_job = hub.submit_inference_job(
|
209 |
+
model=pose_landmark_detector_target_model,
|
210 |
+
device=device,
|
211 |
+
inputs=pose_landmark_detector_input_data,
|
212 |
+
)
|
213 |
pose_landmark_detector_inference_job.download_output_data()
|
214 |
|
215 |
```
|