Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

use of tf.slice to crop images #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

use of tf.slice to crop images #128

wants to merge 1 commit into from

Conversation

ariG23498
Copy link

In this PR I have tried using the tf.slice method to crop images paired with the tf.image.sample_distorted_bounding_box method.

The inspiration of this comes from the official docs of tf.image.sample_distorted_bounding_box.

@ypereirars
Copy link

The arguments tf.slice accept is the image, begin and size.
I've seen you've used bbox_begin twice. Shouldn't it be bbox_begin and bbox_size?

Ex.:
tf.slice(image, bbox_begin, bbox_size)

@ariG23498
Copy link
Author

@ypereirars you are right!
Good catch :)

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

Successfully merging this pull request may close these issues.

2 participants