Unanswered
Hi Everyone. How Can I Get Metadata For Datasets From An Entire Project?
I See The Opportunity To Work With Only One Dataset
@<1523701070390366208:profile|CostlyOstrich36> I did it,, but I think its not optimal))
This is how I got information about FieldNet project:
from clearml import Task, Dataset
all_taks = Task.get_tasks()
FieldNet_tasks = {}
for task in all_taks:
name = task.name
task_id = task.task_id
if 'FieldNet' in name:
if name in FieldNet_tasks:
# get last dataset version
task_old_version = Task.get_task(task_id=FieldNet_tasks[name]).get_parameters_as_dict()['properties']['version']
task_new_version = Task.get_task(task_id=task_id).get_parameters_as_dict()['properties']['version']
if int(task_new_version.split('.')[-1]) > int(task_old_version.split('.')[-1]):
FieldNet_tasks[name] = task_id
else:
FieldNet_tasks[name] = task_id
135 Views
0
Answers
one year ago
one year ago