This commit is contained in:
wudong 2022-11-23 21:12:32 +08:00
commit e02d757e23

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,改成训练的数据路径和类别名称