From f7fc2e81c62a2c89675d90b26f92150f6ee21942 Mon Sep 17 00:00:00 2001 From: Anh Date: Wed, 15 Jan 2025 15:01:58 +0700 Subject: [PATCH] Update model_path for stable_diffusion (#946) --- .../settings/tflite_settings_pixel6.pbtxt | 12 ++++++++---- .../backend_settings/tflite_settings_android.pbtxt | 8 ++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/mobile_back_pixel/cpp/backend_tflite/settings/tflite_settings_pixel6.pbtxt b/mobile_back_pixel/cpp/backend_tflite/settings/tflite_settings_pixel6.pbtxt index 4b80a06b1..6037eaa76 100644 --- a/mobile_back_pixel/cpp/backend_tflite/settings/tflite_settings_pixel6.pbtxt +++ b/mobile_back_pixel/cpp/backend_tflite/settings/tflite_settings_pixel6.pbtxt @@ -216,17 +216,21 @@ benchmark_setting { accelerator_name: "npu" accelerator_desc: "NPU" model_file: { - model_path: "local:///mlperf_models/sd_decoder_dynamic.tflite" + model_path: "https://github.com/mlcommons/mobile_models/releases/download/v4.1-tflite/sd_decoder_dynamic.tflite" model_checksum: "68acdb62f99e1dc2c7f5db8cdd0e007c" } model_file: { - model_path: "local:///mlperf_models/sd_diffusion_model_dynamic.tflite" - model_checksum: "7cbdadf5282b71561ce5eda75e868c19" + model_path: "https://github.com/mlcommons/mobile_models/releases/download/v4.1-tflite/sd_diffusion_model_dynamic.tflite" + model_checksum: "309e95f76ac8de01130942037a28aa8f" } model_file: { - model_path: "local:///mlperf_models/sd_text_encoder_dynamic.tflite" + model_path: "https://github.com/mlcommons/mobile_models/releases/download/v4.1-tflite/sd_text_encoder_dynamic.tflite" model_checksum: "b64effb0360f9ea49a117cdaf8a2fbdc" } + model_file: { + model_path: "https://github.com/mlcommons/mobile_models/releases/download/v4.1-tflite/timestep_embeddings_data.bin.ts" + model_checksum: "798b772155a69de5df44b304327bb3cc" + } } delegate_selected: "NNAPI" custom_setting { diff --git a/mobile_back_tflite/cpp/backend_tflite/backend_settings/tflite_settings_android.pbtxt b/mobile_back_tflite/cpp/backend_tflite/backend_settings/tflite_settings_android.pbtxt index bfec84e5f..fe8ebf64d 100644 --- a/mobile_back_tflite/cpp/backend_tflite/backend_settings/tflite_settings_android.pbtxt +++ b/mobile_back_tflite/cpp/backend_tflite/backend_settings/tflite_settings_android.pbtxt @@ -215,19 +215,19 @@ benchmark_setting { accelerator_name: "npu" accelerator_desc: "NPU" model_file: { - model_path: "https://github.com/RSMNYS/SD/releases/download/SD/sd_decoder_dynamic.tflite" + model_path: "https://github.com/mlcommons/mobile_models/releases/download/v4.1-tflite/sd_decoder_dynamic.tflite" model_checksum: "68acdb62f99e1dc2c7f5db8cdd0e007c" } model_file: { - model_path: "https://github.com/RSMNYS/SD/releases/download/SD/sd_diffusion_model_dynamic.tflite" + model_path: "https://github.com/mlcommons/mobile_models/releases/download/v4.1-tflite/sd_diffusion_model_dynamic.tflite" model_checksum: "309e95f76ac8de01130942037a28aa8f" } model_file: { - model_path: "https://github.com/RSMNYS/SD/releases/download/SD/sd_text_encoder_dynamic.tflite" + model_path: "https://github.com/mlcommons/mobile_models/releases/download/v4.1-tflite/sd_text_encoder_dynamic.tflite" model_checksum: "b64effb0360f9ea49a117cdaf8a2fbdc" } model_file: { - model_path: "https://github.com/RSMNYS/SD/releases/download/SD/timestep_embeddings_data.bin.ts" + model_path: "https://github.com/mlcommons/mobile_models/releases/download/v4.1-tflite/timestep_embeddings_data.bin.ts" model_checksum: "798b772155a69de5df44b304327bb3cc" } }