feat 代码整理
fix
This commit is contained in:
@@ -48,7 +48,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)
|
||||||
logging.info("保存成功", os.path.abspath(file_path))
|
logger.info(f"保存成功 :{os.path.abspath(file_path)}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"保存失败: {e}")
|
logger.error(f"保存失败: {e}")
|
||||||
|
|
||||||
|
|||||||
@@ -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("保存成功", os.path.abspath(file_path))
|
logger.info(f"保存成功 :{os.path.abspath(file_path)}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"保存失败: {e}")
|
logger.error(f"保存失败: {e}")
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,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("保存成功", os.path.abspath(file_path))
|
logger.info(f"保存成功 :{os.path.abspath(file_path)}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"保存失败: {e}")
|
logger.error(f"保存失败: {e}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user