From cdfc93b8a4c45e2c17fefd5dce4e0bb09f6c7fda Mon Sep 17 00:00:00 2001 From: d8ahazard Date: Sat, 10 Dec 2022 18:00:02 -0600 Subject: [PATCH] Dur --- smartprocess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smartprocess.py b/smartprocess.py index d05c08c..56410fa 100644 --- a/smartprocess.py +++ b/smartprocess.py @@ -2,6 +2,7 @@ import math import os import sys import traceback +from pathlib import Path import numpy as np import tqdm @@ -211,7 +212,7 @@ def preprocess(rename, return msg, msg filename = os.path.join(src, src_image) - if not is_image(filename): + if not is_image(Path(filename), pil_features): continue try: