GPU选择debug-6

This commit is contained in:
JIAKUNHAO 2022-11-23 21:12:25 +08:00
parent 2e982651a2
commit b6f7a04d16

View File

@ -63,8 +63,8 @@ from app.schemas.TrainResult import Report, ProcessValueList
from app.controller.AlgorithmController import algorithm_process_value_websocket from app.controller.AlgorithmController import algorithm_process_value_websocket
from app.configs import global_var from app.configs import global_var
from app.utils.websocket_tool import manager from app.utils.websocket_tool import manager
LOCAL_RANK = int(os.getenv('LOCAL_RANK', -1)) # https://pytorch.org/docs/stable/elastic/run.html LOCAL_RANK = -1 #int(os.getenv('LOCAL_RANK', -1)) # https://pytorch.org/docs/stable/elastic/run.html
RANK = int(os.getenv('RANK', -1)) RANK = -1 #int(os.getenv('RANK', -1))
WORLD_SIZE = int(os.getenv('WORLD_SIZE', 1)) WORLD_SIZE = int(os.getenv('WORLD_SIZE', 1))
#重写coco128.yaml,改成训练的数据路径和类别名称 #重写coco128.yaml,改成训练的数据路径和类别名称