python - How to crop a batch of images at different places in tensorflow? -


i have batch of images in shape [batchsize,h,w,channel]. , batch of topleft points in shape [batchsize,2].

i need crop each image bounding box (let's in size of [10,10]), corresponding topleft point.

could 1 have idea how other loop around batch size?

things checked:

- tf.image.resize_image_with_crop_or_pad 

however image must in [h,w,channel]

- tf.slice 

however beginning position must int


Comments

Popular posts from this blog

unix - grep command not match start of new line with another regex -

sql - calculate weighted average for each day and id based on time intervals in PostgreSQL -

Sort a complex associative array in PHP -