LisaShen
LisaShen
``` def letterbox_image(image, size): image = image.convert("RGB") iw, ih = image.size#original size w, h = size#needed size scale = min(w/iw, h/ih)#find the smaller one nw = int(iwscale) nh = int(ihscale)...
> Maybe it will be better if i show the images, > > These are the outputs from the code above  > > After adding a threshold > >...
> > ``` > > def letterbox_image(image, size): > > image = image.convert("RGB") > > iw, ih = image.size#original size > > w, h = size#needed size > > scale...
Hello, could you take a look at this issue? @wwf1995 @cyn-liu https://github.com/megvii-research/PETR/issues/148#issue-2043853547
> Thanks a lot! Hello, could you take a look at this issue?: https://github.com/megvii-research/PETR/issues/148#issue-2043853547
Download from the link: https://onedrive.live.com/download?cid=1570430EADF56512&resid=1570430EADF56512%21109419&authkey=AJcMP-7Yp86PWoE