Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -162,7 +162,6 @@ encoder_compile_job = hub.submit_compile_job(
|
|
162 |
# Get target model to run on-device
|
163 |
encoder_target_model = encoder_compile_job.get_target_model()
|
164 |
|
165 |
-
|
166 |
# Trace model
|
167 |
decoder_input_shape = decoder_model.get_input_spec()
|
168 |
decoder_sample_inputs = decoder_model.sample_inputs()
|
@@ -179,7 +178,6 @@ decoder_compile_job = hub.submit_compile_job(
|
|
179 |
# Get target model to run on-device
|
180 |
decoder_target_model = decoder_compile_job.get_target_model()
|
181 |
|
182 |
-
|
183 |
```
|
184 |
|
185 |
|
@@ -214,14 +212,14 @@ encoder_inference_job = hub.submit_inference_job(
|
|
214 |
device=device,
|
215 |
inputs=encoder_input_data,
|
216 |
)
|
217 |
-
|
218 |
decoder_input_data = decoder_model.sample_inputs()
|
219 |
decoder_inference_job = hub.submit_inference_job(
|
220 |
model=decoder_target_model,
|
221 |
device=device,
|
222 |
inputs=decoder_input_data,
|
223 |
)
|
224 |
-
|
225 |
|
226 |
```
|
227 |
With the output of the model, you can compute like PSNR, relative errors or
|
|
|
162 |
# Get target model to run on-device
|
163 |
encoder_target_model = encoder_compile_job.get_target_model()
|
164 |
|
|
|
165 |
# Trace model
|
166 |
decoder_input_shape = decoder_model.get_input_spec()
|
167 |
decoder_sample_inputs = decoder_model.sample_inputs()
|
|
|
178 |
# Get target model to run on-device
|
179 |
decoder_target_model = decoder_compile_job.get_target_model()
|
180 |
|
|
|
181 |
```
|
182 |
|
183 |
|
|
|
212 |
device=device,
|
213 |
inputs=encoder_input_data,
|
214 |
)
|
215 |
+
encoder_inference_job.download_output_data()
|
216 |
decoder_input_data = decoder_model.sample_inputs()
|
217 |
decoder_inference_job = hub.submit_inference_job(
|
218 |
model=decoder_target_model,
|
219 |
device=device,
|
220 |
inputs=decoder_input_data,
|
221 |
)
|
222 |
+
decoder_inference_job.download_output_data()
|
223 |
|
224 |
```
|
225 |
With the output of the model, you can compute like PSNR, relative errors or
|