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

训练图片的缩放 #4

Open
Aurora11111 opened this issue Oct 10, 2018 · 0 comments
Open

训练图片的缩放 #4

Aurora11111 opened this issue Oct 10, 2018 · 0 comments

Comments

@Aurora11111
Copy link

	(w,h) = Data.size
	size_h = 32
	ratio = 32 / float(h)
	size_w = int(w * ratio)
	transform = resizeNormalize((size_w,size_h))

请问你是直接用这段代码形成的比例进行的缩放吗a,这样是不是相当于没有缩放

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