feat(新功能):

fix(修复bug): 关闭调试日志打印
docs(文档变更):
refactor(重构):
test(增加测试):
This commit is contained in:
zhouchengrong
2025-01-10 15:09:59 +08:00
parent 72a8f3f920
commit f36edbe248
4 changed files with 4 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ class Segmentation(object):
file_path = f"{SEG_CACHE_PATH}{image_id}.npy" file_path = f"{SEG_CACHE_PATH}{image_id}.npy"
try: try:
np.save(file_path, seg_result) 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: except Exception as e:
logger.error(f"保存失败: {e}") logger.error(f"保存失败: {e}")

View File

@@ -51,7 +51,7 @@ class Segmentation:
file_path = f"seg_cache/{image_id}.npy" file_path = f"seg_cache/{image_id}.npy"
try: try:
np.save(file_path, seg_result) 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: except Exception as e:
logger.error(f"保存失败: {e}") logger.error(f"保存失败: {e}")

View File

@@ -66,7 +66,7 @@ class Segmentation:
file_path = f"{SEG_CACHE_PATH}{image_id}.npy" file_path = f"{SEG_CACHE_PATH}{image_id}.npy"
try: try:
np.save(file_path, seg_result) 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: except Exception as e:
logger.error(f"保存失败: {e}") logger.error(f"保存失败: {e}")

View File

@@ -277,7 +277,7 @@ class DesignPreprocessing:
file_path = f"{SEG_CACHE_PATH}{image_id}.npy" file_path = f"{SEG_CACHE_PATH}{image_id}.npy"
try: try:
np.save(file_path, seg_result) 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: except Exception as e:
logging.warning(f"保存失败: {e}") logging.warning(f"保存失败: {e}")