コード例 #1
0
 def get_image_size(cls, model_name):
     """Get the input image size for a given efficientnet model.
     Args:
         model_name (str): Name for efficientnet.
     Returns:
         Input image size (resolution).
     """
     cls._check_model_name_is_valid(model_name)
     _, _, res, _ = efficientnet_params(model_name)
     return res
コード例 #2
0
 def get_image_size(cls, model_name):
     cls._check_model_name_is_valid(model_name)
     _, _, res, _ = efficientnet_params(model_name)
     return res