Thanks SmallDeer34 , I think you are correct, the 'output' model is returned properly, but "input" are returned as model name not model object.
Let me check something
the parent task ids is what I originally wanted, remember?
Martin I found a different solution (hardcoding the parent tasks by hand), but I'm curious to hear what you discover!
So for example, I'm able to view in the UI that my finetuning task 7725f5bed94848039c68f2a3a573ded6 has an input model, and I can find the creating experiment for that. But how would I do this in code?
` {'input': ['Input Model #0'], 'output': [<clearml.model.Model object at 0x7f6d7d6a2750>,
...omitted some here
<clearml.model.Model object at 0x7f6d7d4b1350>]}
Input Model #0
AttributeError Traceback (most recent call last)
<ipython-input-83-65009a52f91b> in <module>()
22
23
---> 24 pretraining_task_id = input_model.task
25 print(f"pretraining_task_id {pretraining_task_id}")
26 task_dict["pretraining_task_id"] = pretraining_task_id
AttributeError: 'str' object has no attribute 'task' `
the parent task ids is what I originally wanted, remember?
ohh I missed it 😄
SmallDeer34 the function Task.get_models() incorrectly returned the input model "name" instead of the object itself. I'll make sure we push a fix.
I found a different solution (hardcoding the parent tasks by hand),
I have to wonder, how does that solve the issue ?