1. 04 Oct, 2021 1 commit
    • Philip Meier's avatar
      Add ufmt (usort + black) as code formatter (#4384) · 5f0edb97
      Philip Meier authored
      
      
      * add ufmt as code formatter
      
      * cleanup
      
      * quote ufmt requirement
      
      * split imports into more groups
      
      * regenerate circleci config
      
      * fix CI
      
      * clarify local testing utils section
      
      * use ufmt pre-commit hook
      
      * split relative imports into local category
      
      * Revert "split relative imports into local category"
      
      This reverts commit f2e224cde2008c56c9347c1f69746d39065cdd51.
      
      * pin black and usort dependencies
      
      * fix local test utils detection
      
      * fix ufmt rev
      
      * add reference utils to local category
      
      * fix usort config
      
      * remove custom categories sorting
      
      * Run pre-commit without fixing flake8
      
      * got a double import in merge
      Co-authored-by: default avatarNicolas Hug <nicolashug@fb.com>
      5f0edb97
  2. 23 Aug, 2021 1 commit
  3. 18 Nov, 2020 1 commit
    • Vasilis Vryniotis's avatar
      Support specifying output channels in io.image.read_image (#2988) · 4d6ba678
      Vasilis Vryniotis authored
      * Adding output channels implementation for pngs.
      
      * Adding tests for png.
      
      * Adding channels in the API and documentation.
      
      * Fixing formatting.
      
      * Refactoring test_image.py to remove huge grace_hopper_517x606.pth file from assets and reduce duplicate code. Moving jpeg assets used by encode and write unit-tests on their separate folders.
      
      * Adding output channels implementation for jpegs. Fix asset locations.
      
      * Add tests for JPEG, adding the channels in the API and documentation and adding checks for inputs.
      
      * Changing folder for unit-test.
      
      * Fixing windows flakiness, removing duplicate test.
      
      * Replacing components to channels.
      
      * Adding reference for supporting CMYK.
      
      * Minor changes: num_components to output_components, adding comments, fixing variable name etc.
      
      * Reverting output_components to num_components.
      
      * Replacing decoding with generic method on tests.
      
      * Palette converted to Gray.
      4d6ba678
  4. 30 Oct, 2019 1 commit
  5. 07 Aug, 2019 1 commit
  6. 15 Jul, 2019 1 commit
  7. 12 Jul, 2019 1 commit
  8. 11 Jun, 2019 1 commit
    • Shahriar's avatar
      C++ Models (#728) · b5db97b4
      Shahriar authored
      * Added the existing code
      
      * Added squeezenet and fixed some stuff in the other models
      
      * Wrote DenseNet and a part of InceptionV3
      
      Going to clean and check all of the models and finish inception
      
      * Fixed some errors in the models
      
      Next step is writing inception and comparing with python code again.
      
      * Completed inception and changed models directory
      
      * Fixed and wrote some stuff
      
      * fixed maxpoool2d and avgpool2d and adaptiveavgpool2d
      
      * Fixed a few stuff
      
      Moved cmakelists to root and changed the namespace to vision and wrote weight initialization in inception
      
      * Added models namespace and changed cmakelists
      
      the project is now installable
      
      * Removed some comments
      
      * Changed style to pytorch style, added some comments and fixed some minor errors
      
      * Removed truncated normal init
      
      * Changed classes to structs and fixed a few errors
      
      * Replaced modelsimpl structs with functional wherever possible
      
      * Changed adaptive average pool from struct to function
      
      * Wrote a max_pool2d wrapper and added some comments
      
      * Replaced xavier init with kaiming init
      
      * Fixed an error in kaiming inits
      
      * Added model conversion and tests
      
      * Fixed a typo in alexnet and removed tests from cmake
      
      * Made an extension of tests and added module names to Densenet
      
      * Added python tests
      
      * Added MobileNet and GoogLeNet models
      
      * Added tests and conversions for new models and fixed a few errors
      
      * Updated Alexnet ad VGG
      
      * Updated Densenet, Squeezenet and Inception
      
      * Added ResNexts and their conversions
      
      * Added tests for ResNexts
      
      * Wrote tools nessesary to write ShuffleNet
      
      * Added ShuffleNetV2
      
      * Fixed some errors in ShuffleNetV2
      
      * Added conversions for shufflenetv2
      
      * Fixed the errors in test_models.cpp
      
      * Updated setup.py
      
      * Fixed flake8 error on test_cpp_models.py
      
      * Changed view to reshape in forward of ResNet
      
      * Updated ShuffleNetV2
      
      * Split extensions to tests and ops
      
      * Fixed test extension
      
      * Fixed image path in test_cpp_models.py
      
      * Fixed image path in test_cpp_models.py
      
      * Fixed a few things in test_cpp_models.py
      
      * Put the test models in evaluation mode
      
      * Fixed registering error in GoogLeNet
      
      * Updated setup.py
      
      * write test_cpp_models.py with unittest
      
      * Fixed a problem with pytest in test_cpp_models.py
      
      * Fixed a lint problem
      b5db97b4