冲突排查
This commit is contained in:
4
main.py
4
main.py
@@ -4,7 +4,7 @@ import traceback
|
||||
|
||||
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
|
||||
|
||||
import paddle
|
||||
# import paddle
|
||||
from auto_email.error_email import send_an_error_email
|
||||
from config.log import LOGGING_CONFIG
|
||||
from photo_review.photo_review import main
|
||||
@@ -23,4 +23,4 @@ if __name__ == '__main__':
|
||||
log.error(traceback.format_exc())
|
||||
send_an_error_email(program_name='照片审核关键信息抽取脚本', error_name=repr(e), error_detail=traceback.format_exc())
|
||||
# 释放显存
|
||||
paddle.device.cuda.empty_cache()
|
||||
# paddle.device.cuda.empty_cache()
|
||||
|
||||
Reference in New Issue
Block a user