Commit 38adf698 authored by zhengyaoqiu's avatar zhengyaoqiu

优化

parent be610aa6
...@@ -115,7 +115,8 @@ class FeatureExtractor: ...@@ -115,7 +115,8 @@ class FeatureExtractor:
result = image_features.cpu().numpy().astype(np.float32).flatten() result = image_features.cpu().numpy().astype(np.float32).flatten()
# ViT-L/14@336px 需要转换列表结构 # ViT-L/14@336px 需要转换列表结构
return result.tolist() # return result.tolist()
return result
except Exception as e: except Exception as e:
self.__logger.error(f"Error extracting features from image: {e}") self.__logger.error(f"Error extracting features from image: {e}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment