mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-03-16 01:15:59 +08:00
lint
Summary: Fix recent flake complaints Reviewed By: MichaelRamamonjisoa Differential Revision: D51811912 fbshipit-source-id: 65183f5bc7058da910e4d5a63b2250ce8637f1cc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f74fc450e8
commit
83bacda8fb
@@ -453,6 +453,6 @@ def parse_image_size(
|
||||
raise ValueError("Image size can only be a tuple/list of (H, W)")
|
||||
if not all(i > 0 for i in image_size):
|
||||
raise ValueError("Image sizes must be greater than 0; got %d, %d" % image_size)
|
||||
if not all(type(i) == int for i in image_size):
|
||||
if not all(isinstance(i, int) for i in image_size):
|
||||
raise ValueError("Image sizes must be integers; got %f, %f" % image_size)
|
||||
return tuple(image_size)
|
||||
|
||||
Reference in New Issue
Block a user