From afa181699611c1e1a96a8e9f7b634c8e06b9b437 Mon Sep 17 00:00:00 2001 From: Fernando Bravo Date: Thu, 26 Oct 2023 11:45:15 +0200 Subject: [PATCH] Keep exception for possible pip installation --- checkbox-support/checkbox_support/vendor/brisque/brisque.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/checkbox-support/checkbox_support/vendor/brisque/brisque.py b/checkbox-support/checkbox_support/vendor/brisque/brisque.py index 7336ea25a..b772e3b48 100644 --- a/checkbox-support/checkbox_support/vendor/brisque/brisque.py +++ b/checkbox-support/checkbox_support/vendor/brisque/brisque.py @@ -7,7 +7,11 @@ import cv2 import numpy as np -from .svm import svmutil +try: + from .svm import svmutil +except: + from libsvm import svmutil + from .models import MODEL_PATH