Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -183,13 +183,13 @@ provisioned in the cloud. Once the job is submitted, you can navigate to a
|
|
183 |
provided job URL to view a variety of on-device performance metrics.
|
184 |
```python
|
185 |
face_detector_profile_job = hub.submit_profile_job(
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
face_landmark_detector_profile_job = hub.submit_profile_job(
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
|
194 |
```
|
195 |
|
@@ -200,17 +200,17 @@ on sample input data on the same cloud hosted device.
|
|
200 |
```python
|
201 |
face_detector_input_data = face_detector_model.sample_inputs()
|
202 |
face_detector_inference_job = hub.submit_inference_job(
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
face_detector_inference_job.download_output_data()
|
208 |
face_landmark_detector_input_data = face_landmark_detector_model.sample_inputs()
|
209 |
face_landmark_detector_inference_job = hub.submit_inference_job(
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
face_landmark_detector_inference_job.download_output_data()
|
215 |
|
216 |
```
|
|
|
183 |
provided job URL to view a variety of on-device performance metrics.
|
184 |
```python
|
185 |
face_detector_profile_job = hub.submit_profile_job(
|
186 |
+
model=face_detector_target_model,
|
187 |
+
device=device,
|
188 |
+
)
|
189 |
face_landmark_detector_profile_job = hub.submit_profile_job(
|
190 |
+
model=face_landmark_detector_target_model,
|
191 |
+
device=device,
|
192 |
+
)
|
193 |
|
194 |
```
|
195 |
|
|
|
200 |
```python
|
201 |
face_detector_input_data = face_detector_model.sample_inputs()
|
202 |
face_detector_inference_job = hub.submit_inference_job(
|
203 |
+
model=face_detector_target_model,
|
204 |
+
device=device,
|
205 |
+
inputs=face_detector_input_data,
|
206 |
+
)
|
207 |
face_detector_inference_job.download_output_data()
|
208 |
face_landmark_detector_input_data = face_landmark_detector_model.sample_inputs()
|
209 |
face_landmark_detector_inference_job = hub.submit_inference_job(
|
210 |
+
model=face_landmark_detector_target_model,
|
211 |
+
device=device,
|
212 |
+
inputs=face_landmark_detector_input_data,
|
213 |
+
)
|
214 |
face_landmark_detector_inference_job.download_output_data()
|
215 |
|
216 |
```
|