Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy paste to background image #6

Open
CuongNN218 opened this issue Feb 18, 2021 · 2 comments
Open

copy paste to background image #6

CuongNN218 opened this issue Feb 18, 2021 · 2 comments

Comments

@CuongNN218
Copy link

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 ?

@Gokul14092001
Copy link

Have you done this?

@zhursvlevy
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants