Unanswered
Hey Guys! I'M Trying To Retrieve A Tile Of An Image (
Yeah, I understand that it's a bit confusing what I'm asking. Here's a sample code:
` from clearml.automation.controller import PipelineDecorator
@PipelineDecorator.component(cache=True)
def step_one():
import numpy as np
image = np.ones((100, 100, 3))
crop = image[0:50, 0:50]
print("here's my crop of shape:", crop.shape)
@PipelineDecorator.pipeline(name='custom pipeline logic', project='examples', version='0.0.5')
def executing_pipeline():
step_one()
if name == 'main':
PipelineDecorator.run_locally()
executing_pipeline() `
170 Views
0
Answers
2 years ago
one year ago