Reputation
Badges 1
23 × Eureka!so if i load task and not init it..so it is not the main one?
hhhhmm..then i can not get master task params
i mean something like:
https://github.com/mikedh/trimesh/issues/526
so if i plot image with matplot lib..it would not upload? i need use the logger.
each consumer in different container
ValueError: Task object can only be updated if created or in_progress
how can I pass to task_init the task_id? should it also be in some env?
so how can i make it run with the "auto magic"
should OMPI_COMM_WORLD_NODE_RANK be number or can be some guid?
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
the data is private..we are taking it privately
Ok, so it is master node and not consumer producer pattern..
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'>