Reputation
Badges 1
75 × Eureka!maybe another warning here? https://clear.ml/docs/latest/docs/references/sdk/task/
I am only getting one user for some reason, even though 4 are in the system
task.data.user is the user id, can I get it in the text form?
I don't see such a method in the docs, but it seems so natural that decided to ask.
SuccessfulKoala55 that worked, thanks a lot!
Just to let you know, it now works (obviously) in the k8s setting as well.
my code snippet
` from clearml import Task
import os
clearml_task_id = os.environ['CLEARML_TASK_ID']
Task.debug_simulate_remote_task(clearml_task_id)
clearml_task = Task.init(auto_connect_arg_parser=False, auto_resource_monitoring=False)
print(clearml_task.id)
clearml_task.logger.report_scalar(series='s', value='123', iteration=2, title='title')
clearml_task.logger.report_text("some text") `
to avoid loading and cropping a big image
maybe not at the top but in the Task.init
description
yes, I don't know whether you have access to the backend, but just in case my experiment is this one:
ClearML results page: https://app.clear.ml/projects/45557a1ee1464631a9a18b0dcda4f682/experiments/01b77a220869442d80af42efce82c617/output/log
the situation is:
I can report a scalar by calling clearml_task.logger.report_scalar
and it becomes immediately visible in the web ui
but perhaps it is worth adding to the docs page a hint to avoid using the CLEARML_TASK_ID env variable, perhaps I am not the only one to ever try it
report_scalar works, report_text does not, this is very weird
I could have been more inventive as well 😄
task status is running in the webui
I see the text on my screen