Reputation
Badges 1
23 × Eureka!args = parser.parse_args() os.environ['TRAINS_PROC_MASTER_ID'] = f"1:{args.trains_id}" os.environ['OMPI_COMM_WORLD_NODE_RANK'] = str(randint(0, sys.maxsize)) trains_task = trains.Task.init(project_name=f'{ALG_NAME}-inference', task_name='inference')
failes on init
Ok, so it is master node and not consumer producer pattern..
the data is private..we are taking it privately
each consumer in different container
so if i plot image with matplot lib..it would not upload? i need use the logger.
so how can i make it run with the "auto magic"
i mean something like:
https://github.com/mikedh/trimesh/issues/526
so if i load task and not init it..so it is not the main one?
ValueError: Task object can only be updated if created or in_progress
os.environ['TRAINS_PROC_MASTER_ID'] = args.trains_id os.environ['OMPI_COMM_WORLD_NODE_RANK'] = str(randint(0, sys.maxsize)) trains_task = trains.Task.init(project_name=f'{ALG_NAME}-inference', task_name='inference') print(type(trains_task))
<class 'trains.task.Task.init.<locals>._TaskStub'>
how can I pass to task_init the task_id? should it also be in some env?
should OMPI_COMM_WORLD_NODE_RANK be number or can be some guid?
hhhhmm..then i can not get master task params