1. 18 Sep, 2019 1 commit
    • Francisco Massa's avatar
      Remove cpp extensions in favor of torch ops (#1348) · f677ea31
      Francisco Massa authored
      * Remove C++ extensions in favor of custom ops
      
      * Remove unused custom_ops.cpp file
      
      * Rename _custom_ops.py
      
      * Reorganize functions
      
      * Minor improvements and fixes
      
      * Fix lint
      
      * Fully scriptable ops
      
      * Import types used by annotations
      f677ea31
  2. 10 Sep, 2019 2 commits
    • Thomas Viehmann's avatar
      Make custom ops differentiable (#1314) · a91fe722
      Thomas Viehmann authored
      * Make custom ops differentiable
      
      and replace autograd.Function. Use ops unconditionally.
      
      We may consider removing the extension functions in a follow-up.
      
      The code-path is tested by the exisitng tests for differentiability.
      
      * add scripting gradchecks tests and use intlist
      
      * fix implicit tuple conversion for gcc-5
      
      * fix merge
      a91fe722
    • Lara Haidar's avatar
      Fix Windows build in Torchvision Custom op Registration (#1320) · 7f7e7663
      Lara Haidar authored
      * Revert "Revert "Register Torchvision Ops as Cutom Ops (#1267)" (#1316)"
      
      This reverts commit fe234fc8.
      
      * Make import of C++ extensions lazy
      
      * define python initialization functions for extension
      
      * Fix lint
      7f7e7663
  3. 09 Sep, 2019 2 commits
  4. 30 Aug, 2019 1 commit
  5. 29 Aug, 2019 1 commit
  6. 23 Jul, 2019 2 commits
  7. 15 Jul, 2019 1 commit
  8. 12 Jul, 2019 1 commit
  9. 11 Jul, 2019 1 commit
  10. 08 Jul, 2019 1 commit
  11. 26 Jun, 2019 1 commit
  12. 25 Jun, 2019 1 commit
  13. 19 Jun, 2019 1 commit
    • philipNoonan's avatar
      Enabling exporting symbols on windows (#1035) · f6262182
      philipNoonan authored
      * Enabling exporting symbols on windows
      
      Small fix to allow for the built library to be used in windows #728
      
      * added macro to allow for exported symbols on windows
      
      * added macro to allow for exported symbols on windows
      
      * removed cmake command
      
      * added dllimport using torchvision_EXPORTS preprocessor
      f6262182
  14. 17 Jun, 2019 1 commit
  15. 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
  16. 23 May, 2019 2 commits
    • Francisco Massa's avatar
      Fix windows build (#953) · f5167537
      Francisco Massa authored
      * #944
        MSBuild Compile time casting Error
      
      * #944
       MSBuild Error  static_cast<Long> to static_cast<int64_t>
      
      * Add eval.py
       Not Work find_contours
      
      * Remove unnecessary file
      
      * Lint
      f5167537
    • Varun Agrawal's avatar
      nms_cuda signature update (#945) · 249cfbf5
      Varun Agrawal authored
      Updated nms_cuda signature to accept detections and scores as separate tensors.
      This also required updating the indexing in the NMS CUDA kernel.
      
      Also made the iou_threshold parameter name consistent across implementations.
      249cfbf5
  17. 22 May, 2019 1 commit
  18. 19 May, 2019 1 commit
  19. 07 May, 2019 1 commit
    • Francisco Massa's avatar
      Add C++ ops to torchvision (#826) · dc3ac290
      Francisco Massa authored
      * Initial layout for layers with cpp extensions
      
      * Move files around
      
      * Fix import after move
      
      * Add support for multiple types to ROIAlign
      
      * Different organization
      
      CUDA extensions work now
      
      * Cleanups
      
      * Reduce memory requirements for backwards
      
      * Replace runtime_error by AT_ERROR
      
      * Add nms test
      
      * Add support for compilation using CPP extensions
      
      * Change folder structure
      
      * Add ROIPool cuda
      
      * Cleanups
      
      * Add roi_pool.py
      
      * Fix lint
      
      * Add initial structures folder for bounding boxes
      
      * Assertion macros compatible with pytorch master (#540)
      
      * Support for ROI Pooling (#592)
      
      * ROI Pooling with tests. Fix for cuda context in ROI Align.
      
      * renamed bottom and top to follow torch conventions
      
      * remove .type().tensor() calls in favor of the new approach to tensor initialization (#626)
      
      * Consistent naming for rois variable (#627)
      
      * remove .type().tensor() calls in favor of the new approach to tensor initialization
      
      * Consistent naming for rois variable in ROIPool
      
      * ROIPool: Support for all datatypes (#632)
      
      * Use of torch7 naming scheme for ROIAlign forward and backward
      
      * use common cuda helpers in ROIAlign
      
      * use .options() in favor of .type() where applicable
      
      * Added tests for forward pass of ROIAlign, as well as more consistent naming scheme for CPU vs CUDA
      
      * working ROIAlign cuda backwards pass
      
      * working ROIAlign backwards pass for CPU
      
      * added relevant headers for ROIAlign backwards
      
      * tests for ROIAlign layer
      
      * replace .type() with .options() for tensor initialization in ROIAlign layers
      
      * support for Half types in ROIAlign
      
      * gradcheck tests for ROIAlign
      
      * updated ROIPool on CPU to work with all datatypes
      
      * updated and cleaned tests for ROI Pooling
      
      * Fix rebase problem
      
      * Remove structures folder
      
      * Improve cleanup and bugfix in test_layers
      
      * Update C++ headers
      
      * Add CUDAGuard to cu files
      
      * Add more checks to layers
      
      * Add CUDA NMS and tests
      
      * Add multi-type support for NMS CUDA
      
      * Avoid using THCudaMalloc
      
      * Add clang-format and reformat c++ code
      
      * Remove THC includes
      
      * Rename layers to ops
      
      * Add documentation and rename functions
      
      * Improve the documentation a bit
      
      * Fix some lint errors
      
      * Fix remaining lint inssues
      
      * Area computation doesn't add +1 in NMS
      
      * Update CI to use PyTorch nightly
      
      * Make NMS return indices sorted according to the score
      
      * Address reviewer comments
      
      * Lint fixes
      
      * Improve doc for roi_align and roi_pool
      
      * move to xenial
      
      * Fix bug pointed by @lopuhin
      
      * Fix RoIPool reference implementation in Python 2
      
      Also fixes a bug in the clip_boxes_to_image -- this function needs a test!
      
      * Remove change in .travis
      dc3ac290