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

randomg scaling question.. #11

Open
HERIUN opened this issue Jun 11, 2021 · 0 comments
Open

randomg scaling question.. #11

HERIUN opened this issue Jun 11, 2021 · 0 comments

Comments

@HERIUN
Copy link

HERIUN commented Jun 11, 2021

in voc.py

def random_scale(self, img, boxes):

WHY
img = cv2.resize(img, dsize=(int(w * scale), h), interpolation=cv2.INTER_LINEAR)

I suggest
img = cv2.resize(img, dsize=(int(w * scale), int(h * scale)), interpolation=cv2.INTER_LINEAR)

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

1 participant