"vscode:/vscode.git/clone" did not exist on "180ab8c8464d1c2a22556df9923696bbc2c92076"
  • Huan Yang's avatar
    Add support for Transforms.Scale([w, h]) with specific width and height (#133) · f6d49d8b
    Huan Yang authored
    * Fixed border missing on bottom and right side using make_grid
    
    * Add support for Transforms.Scale([h, w]) with specific height and width
    
    if self.size is a int then scale the image with the shorter side,
    otherwise if self.size is a list then scale the image to self.size
    directly
    
    * Add assert of size and doc for README
    
    Add assert of size and doc for README
    
    * Fix linter problem
    
    Fix linter problem
    
    * Add test for Scale
    
    Add test for Scale
    
    * Add both tuple and list support for Scale.size
    
    Add both tuple and list support for Scale.size
    
    * Add order of Scale.size in document and test case for list type of Scale.size
    
    Add order of Scale.size in document and test case for list type of
    Scale.size
    f6d49d8b
test_transforms.py 8.66 KB