feat(新功能):
fix(修复bug): 关闭调试日志打印 docs(文档变更): refactor(重构): test(增加测试):
This commit is contained in:
@@ -53,7 +53,7 @@ class Segmentation(object):
|
||||
file_path = f"{SEG_CACHE_PATH}{image_id}.npy"
|
||||
try:
|
||||
np.save(file_path, seg_result)
|
||||
logger.info(f"保存成功 :{os.path.abspath(file_path)}")
|
||||
logger.debug(f"保存成功 :{os.path.abspath(file_path)}")
|
||||
except Exception as e:
|
||||
logger.error(f"保存失败: {e}")
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class Segmentation:
|
||||
file_path = f"seg_cache/{image_id}.npy"
|
||||
try:
|
||||
np.save(file_path, seg_result)
|
||||
logger.info(f"保存成功 :{os.path.abspath(file_path)}")
|
||||
logger.debug(f"保存成功 :{os.path.abspath(file_path)}")
|
||||
except Exception as e:
|
||||
logger.error(f"保存失败: {e}")
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ class Segmentation:
|
||||
file_path = f"{SEG_CACHE_PATH}{image_id}.npy"
|
||||
try:
|
||||
np.save(file_path, seg_result)
|
||||
logger.info(f"保存成功 :{os.path.abspath(file_path)}")
|
||||
logger.debug(f"保存成功 :{os.path.abspath(file_path)}")
|
||||
except Exception as e:
|
||||
logger.error(f"保存失败: {e}")
|
||||
|
||||
|
||||
@@ -277,7 +277,7 @@ class DesignPreprocessing:
|
||||
file_path = f"{SEG_CACHE_PATH}{image_id}.npy"
|
||||
try:
|
||||
np.save(file_path, seg_result)
|
||||
logging.info(f"保存成功,{os.path.abspath(file_path)}")
|
||||
logging.debug(f"保存成功,{os.path.abspath(file_path)}")
|
||||
except Exception as e:
|
||||
logging.warning(f"保存失败: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user