copy-paste-aug icon indicating copy to clipboard operation
copy-paste-aug copied to clipboard

copy paste to background image

Open CuongNN218 opened this issue 4 years ago • 2 comments

Hi @conradry , first of all thanks for your great work, I want to use copy paste to copy annotation from original image to a background image without annotations. How can I do it ?

CuongNN218 avatar Feb 18 '21 09:02 CuongNN218

Have you done this?

Gokul14092001 avatar Jul 26 '22 12:07 Gokul14092001

Hi @CuongNN218 You can do this if assign to parameters masks and bboxes empy list. Example: cpy_pst = CopyPaste(blend=True, sigma=1, pct_objects_paste=0.8, p=1., always_apply=True, max_paste_objects=5) out = cpy_pst(image=image, masks=[], bboxes=[], paste_image=paste_image, paste_masks=paste_masks, paste_bboxes=paste_bboxes)

zhursvlevy avatar Sep 21 '22 13:09 zhursvlevy