From 006af738445935a221e53d4c4fd27525b9cccbb3 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:49:23 -0500 Subject: [PATCH] remove unneeded --- frigate/embeddings/functions/onnx.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frigate/embeddings/functions/onnx.py b/frigate/embeddings/functions/onnx.py index 7b437c5d2..396145380 100644 --- a/frigate/embeddings/functions/onnx.py +++ b/frigate/embeddings/functions/onnx.py @@ -80,12 +80,6 @@ class GenericONNXEmbedding: clean_up_tokenization_spaces=True, ) tokenizer.save_pretrained(path) - else: - if not os.path.exists(path + "/" + self.model_name): - logger.info(f"Downloading {self.model_name} feature extractor") - self.feature_extractor = AutoFeatureExtractor.from_pretrained( - f"{MODEL_CACHE_DIR}/{self.model_name}", - ) self.downloader.requestor.send_data( UPDATE_MODEL_STATE,