Unanswered
Hi Everyone!
Before I Ask A Question - You Develop A Very Cool Tool. Thanks!
I Tried To Write Simple Pipeline Using The Pipelinedecorator.
But Found That The Clearml Modifies The Code, For Example It Replaces
hi, @<1523701070390366208:profile|CostlyOstrich36>
sure:
from clearml.automation.controller import PipelineDecorator
@PipelineDecorator.component(return_values=['img'])
def get_image(image_path):
import cv2
img = cv2.imread(image_path)
img = img[..., ::-1]
return img
@PipelineDecorator.pipeline(
project='test',
name='test pipeline',
version='0.0.1',
return_value='result',
)
def executing_pipeline(params):
print(params)
result = get_image(params['image_path'])
return result
if __name__ == '__main__':
params = {'image_path': ''}
PipelineDecorator.run_locally()
executing_pipeline(params)
83 Views
0
Answers
2 years ago
8 months ago