i run:
` task = Task.init(
project_name=f"RL_experiments/{cfg.train.env_train.target.split('.')[-1]}/{'/'.join(cfg.train.trainmodule.target.split('.')[-2:])}",
task_name="demo",
reuse_last_task_id=False)
task.connect(dict(OmegaConf.to_container(cfg, resolve=True)))
logger = get_logger("train_ql", log_level=cfg.base.log_level)
logger.info(f"cfg:\n{OmegaConf.to_yaml(cfg)}")
tmp_values = train_dqn_task(cfg.train, cfg.base)
task.mark_completed() `
and dell tasks, and all ok:
` #task = Task.init(
project_name=f"RL_experiments/{cfg.train.env_train.target.split('.')[-1]}/{'/'.join(cfg.train.trainmodule.target.split('.')[-2:])}",
task_name="demo",
reuse_last_task_id=False)
#task.connect(dict(OmegaConf.to_container(cfg, resolve=True)))
logger = get_logger("train_ql", log_level=cfg.base.log_level)
logger.info(f"cfg:\n{OmegaConf.to_yaml(cfg)}")
tmp_values = train_dqn_task(cfg.train, cfg.base)
#task.mark_completed() `
docker run --rm -v /srv:/root/srv -v /srv/data/apatshin_docker/airflow/dags/voyager:/voyager voyager:cpu python3.7 /voyager/src/pipeline/train_task_dqn_demo.py
For reference
I have now locally raised Clearml on a nearby machine and logging is configured as in the textbook - all metrics are worked out.
On the machine where I run docker, I just copied the clearml.conf file. Maybe you need to do something else (send the /opt/clearml folder and drop it into the docker image?)?
Hey CheerfulGorilla72 , whats the clearml version you are using? Are you trying to use the task’s logger?
TimelyPenguin76
As I remember, the last one is 1.1.4
What exactly do you mean about task logger?