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

simplify image sample usage #139

Merged
merged 1 commit into from
Jan 15, 2018

Conversation

Superjomn
Copy link
Contributor

@Superjomn Superjomn commented Jan 15, 2018

add an add_sample interface, and use as follows:

image.add_sample(shape, image)

the original method is

idx = image.is_sample_taken()
if idx >= 0:
    image.set_sample(idx, shape, data)

Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Superjomn Superjomn merged commit 6f02954 into PaddlePaddle:develop Jan 15, 2018
@Superjomn Superjomn deleted the enhance/simplify_image branch January 15, 2018 06:30
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

Successfully merging this pull request may close these issues.

2 participants