copy-paste-aug
copy-paste-aug copied to clipboard
copy paste to background image
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 ?
Have you done this?
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)