original_docstring: resize image to be divisible by 32
  	
docstring: resize image to be divisible by 32
docstring_tokens: resize image to be divisible by 32
code: def resize_img(img):
  	'''resize image to be divisible by 32
  	'''
  	w, h = img.size
  	resize_w = w
  	resize_h = h
  
  	resize_h = resize_h if resize_h % 32 == 0 else int(resize_h / 32) * 32
  	resize_w = resize_w if resize_w % 32 == 0 else int(resize_w / 32) * 32
  	img = img.resize((resize_w, resize_h), Image.BILINEAR)
  	ratio_h = resize_h / h
  	ratio_w = resize_w / w
  
  	return img, ratio_h, ratio_w
code_tokens: def resize_img ( img ) : w , h = img . size resize_w = w resize_h = h resize_h = resize_h if resize_h % 32 == 0 else int ( resize_h / 32 ) * 32 resize_w = resize_w if resize_w % 32 == 0 else int ( resize_w / 32 ) * 32 img = img . resize ( ( resize_w , resize_h ) , Image . BILINEAR ) ratio_h = resize_h / h ratio_w = resize_w / w return img , ratio_h , ratio_w
short_docstring: resize image to be divisible by 32
short_docstring_tokens: resize image to be divisible by 32
comment: '''resize image to be divisible by 32
  	'''