Closed youwenwang2024 closed 2 months ago
Don't create a new pipeline every time, try this:
p_search = (
pipe.input('img')
.map('img', 'vec', ops.image_embedding.timm('lambda_resnet50ts'))
.output('vec')
)
def pipline(img):
res = p_search(img).get()
return res
According to the method you provided, the problem has been resolved. Thank you
There are a large number of images in the folder. When calling the feature extraction interface in a loop, the memory gradually increases, ultimately leading to OOM. What is the reason for this
Environment