clearml
clearml copied to clipboard
Offline mode checks server configuration
To reproduce:
import os
from clearml import Task
parameters = {
'experiment': {
'project_name': 'test',
'experiment_name': 'test_exp',
'tags': []
}
}
Task.set_offline(True)
if not Task.is_offline():
os.environ['CLEARML_NO_DEFAULT_SERVER'] = '1'
task = Task.init(
project_name=parameters['experiment']['project_name'],
task_name=parameters['experiment']['experiment_name'],
task_type='testing',
tags=parameters['experiment']['tags'],
auto_connect_arg_parser=True,
auto_connect_streams=True,
auto_connect_frameworks=True,
auto_resource_monitoring=True,
)
task.connect_configuration(parameters)
This gives:
ValueError: ClearML configuration could not be found (missing
~/clearml.confor Environment CLEARML_API_HOST) To get started with ClearML: setup your ownclearml-server, or create a free account at https://app.community.clear.ml
I would expect that offline mode is not checking for a server
@dmus a fix was pushed to the main branch, we'll update when a version that includes it is released 🙂
Hi , I also encountered same issue and used update version of ClearML .
My Error Log :
Traceback (most recent call last):
File "C:\Users\30863\Project\dataset\yolov5\train.py", line 630, in ~/clearml.conf or Environment CLEARML_API_HOST)
To get started with ClearML: setup your own clearml-server, or create a free account at https://app.clear.ml/
My Snippet Code :
if not self._offline_mode and ENV_CLEARML_NO_DEFAULT_SERVER.get() and host == self.default_demo_host:
raise ValueError(
"ClearML configuration could not be found (missing ~/clearml.conf or Environment CLEARML_API_HOST)\n"
"To get started with ClearML: setup your own clearml-server, "
"or create a free account at https://app.clear.ml"
)
Hi @aravinthk00, did you set the offline mode? You can do that by setting CLEARML_OFFLINE_MODE=1
After do offline i got upload zip file. I don't understand where to upload can you please explain? Thanks!
Hi @kumartankhush786,
Sorry for the slow answer, were you able to get what you wanted to work? If not, please elaborate on what the need is and I'll try to help!
Closing this issue due to inactivity. Please reopen if required.