Hi @<1644147961996775424:profile|HurtStarfish47> ,
ClearML will automatically upload you model with the original name and data, if not mistaken, best.pt is given by default from the train function.
You can rename it after the training and upload it, something like:
import shutil
# Rename best model checkpoint after training
shutil.move("runs/train/my_model/weights/best.pt", "my_model.pt")
# upload with the StorageManager
model_path = "my_model.pt"
# Define your...
Hi @<1790552666904989696:profile|GlamorousDog61> ,
Can you update clearml ( pip install -U clearml ) to the latest version?
Are you using add_function_step to add steps to the pipeline controller? if so, did you specify the packages with the packages parameter?
With the API you can register an artifact to a task, but the upload will be done separately with the ClearML sdk (the sdk wrap the registration and upload, with some other things inside the upload_artifact function).
Hi @<1779681046892122112:profile|EnviousHare17> and @<1774969995759980544:profile|SmoggyGoose12> ,
I run this code example:
# ClearML - Example of pytorch with tensorboard>=v1.14
#
from __future__ import print_function
import argparse
import os
from tempfile import gettempdir
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.autograd import Variable
from torch.utils.tensorboard im...
Hi @<1797800418953138176:profile|ScrawnyCrocodile51> ,
I can understand the confusion here, from the code you shared, the issue is with how you're accessing the artifact properties. When you call .get() on an Artifact object, you're actually invoking the get() method defined in the Artifact class, which returns the artifact's content (in your case, a pandas DataFrame), not a dictionary value.
Instead, you should access the URL property directly:
task.artifacts.get("my-artifac...
@<1691983266761936896:profile|AstonishingOx62> agreed, will push it forward
Hi @<1742355077231808512:profile|DisturbedLizard6> ,
Currently, only argparse arguments are supported for clearml-task , click is also support, but for now, with the python sdk.
Hi @<1523701295830011904:profile|CluelessFlamingo93> , no, all the data will be the same, but the user will be deactivate, and won't have access to the workspace (including the credentials, experiments, artifacts, datasets and all the other parts)
Can I suggest using the sdk? It will do both, log it to the task and will upload it to any storage wanted, like in this example
Hi @<1691983266761936896:profile|AstonishingOx62> , I think it's an issue related to the schema generated by the sdk, can you try adding _allow_extra_fields_ as True with the same call?
Hi @<1669152726245707776:profile|ManiacalParrot65> ,
Yes, you can wrap the separate function with a decorator so the function will run as a separate step in the pipeline, and even can cache the step for multi runs.
You can also add the function without a decorator, as a step to the pipeline with PipelineController.add_function_step() .
You can read about it [here](https://clear.ml/docs/latest/docs/pip...
Hi @<1594863230964994048:profile|DangerousBee35> , I can get reproduce the issue, will keep you posted about it
The auto magical will register the original model as an artifact, so the model that will be register it the original one, you can upload the model to your task as a model (so it will get a model id, like in this example ) or as a regular artifact (like in this example ).
Hi @<1742355077231808512:profile|DisturbedLizard6> , not sure I get that, did you use torch.save (like in here ) or some other command to save the models? When running with the clearml-agent. you have a print of all the configurations at the beginning of the log, can you verify your values are as you configure it?
Additionally, which version of clearml , clearml-agent and `...
Hi @<1594863230964994048:profile|DangerousBee35> ,
i run
from clearml import Task
import pandas as pd
task = Task.init(project_name='examples', task_name='Artifacts with data_')
df = pd.DataFrame(
{
'num_legs': [2, 4, 8, 0],
'num_wings': [2, 0, 0, 0],
'num_specimen_seen': [10, 2, 1, 8]
},
index=['falcon', 'dog', 'spider', 'fish']
)
# Register Pandas object as artifact to watch
# (it will be mon...
Hi @<1594863230964994048:profile|DangerousBee35> , can you try with the latest clearml version? can you share initialize_clearml_task function?
Hi @<1774245260931633152:profile|GloriousGoldfish63> ,
which clearml version are you using? Can you add a snippet of the code? I tried to reproduce it but didn't succeed.
Hi @<1835851157679902720:profile|CumbersomeBluewhale64> , can you try running this one?
from clearml import Task
# create an dataset experiment
task = Task.init(project_name="examples", task_name="my task")
task.set_base_docker("python:3.9-slim")
# only create the task, we will actually execute it later
task.execute_remotely(queue_name=<placeholder>, clone=False)
print("hello world")
Dont forget to change the queue name
Hi @<1613344994104446976:profile|FancyOtter74> , I’m getting the same, will keep you posted once a fixed version is out
Hi @<1774245260931633152:profile|GloriousGoldfish63> , checking it
Hi @<1886947834087870464:profile|SuperficialSparrow80>
You can configure the agent to run using conda in the configuration file, in the agent section - None
Hi @<1523708920831414272:profile|SuperficialDolphin93> ,
I would use Kibana to investigate the documents.
@<1774969995759980544:profile|SmoggyGoose12> how do you report the scalars? with tb SummaryWriter?
In the UI, if you click the eye symbol, you have only the monitoring options?
Hi @<1613344994104446976:profile|FancyOtter74> , it's high on our list, will keep you posted once release
Do you get any errors from the container? Do you have any limitations? Can you share the docker run command (the first output in the log)
Hi @<1797800424254738432:profile|FlatHippopotamus76> ,
You can control the pip installation and setting the env with CLEARML_AGENT_SKIP_PIP_VENV_INSTALL and CLEARML_AGENT_SKIP_PYTHON_ENV_INSTALL env vars ( examples here )
Do you have python on this container? for running the clearml-agent
Hi @<1882599179692281856:profile|FriendlyBluewhale89> ,
I suggest using the pipeline stages for doing such - None
Hi @<1747428509627715584:profile|CumbersomeDuck6> ,
Can you check if you have such graph in the task, under ARTIFACTS -> state ?
Hi @<1747066118549278720:profile|WhoppingToad71> , can you share the use case? You want to upload the file to some storage? Or upload to a task?