1. 20 Dec, 2020 1 commit
    • Siddhant Bansal's avatar
      Clean up and Document io.image enhancements (#3193) · af5cb00c
      Siddhant Bansal authored
      * Update ImageReadMode error messages, add newline at the end of image_read_mode.h, replace define with const in image_read_mode.h, add documentation to ImageReadMode enum
      
      * Update readpng_cpu and readjpeg_cpu error messages
      
      * Update image.py documentation
      af5cb00c
  2. 14 Dec, 2020 1 commit
  3. 11 Dec, 2020 2 commits
  4. 10 Dec, 2020 1 commit
    • Vasilis Vryniotis's avatar
      Restructuring C++ project: (#3146) · 7d831a2f
      Vasilis Vryniotis authored
      Summary:
      * Reduce unnecessary header inclusions in models and io.
      
      * Move autocast to separate folder and hide autograd implementation in an anonymous namespace.
      
      * Moving files in subfolders.
      
      Reviewed By: fmassa
      
      Differential Revision: D25461523
      
      fbshipit-source-id: 756eeb6848aacaa474de4825ed4c1045d17e2cea
      7d831a2f
  5. 09 Dec, 2020 1 commit
  6. 08 Dec, 2020 1 commit
    • Vasilis Vryniotis's avatar
      Per file C++ Operator registration (#3135) · 3c33f367
      Vasilis Vryniotis authored
      * Moving deform_conv2d op registration.
      
      * Moving nms op registration.
      
      * Moving new_empty_tensor op registration.
      
      * Moving ps_roi_align op registration.
      
      * Moving ps_roi_pool op registration.
      
      * Moving roi_align op registration.
      
      * Moving roi_pool op registration.
      
      * Restoring headers for forward/backward and fixing styles.
      
      * Restoring the test hack on windows.
      
      * Stricter header inclusion.
      3c33f367
  7. 07 Dec, 2020 1 commit
  8. 03 Dec, 2020 1 commit
  9. 02 Dec, 2020 2 commits
    • Vasilis Vryniotis's avatar
      Encapsulate and Standardise C++ Ops (#3097) · 0ebbb0ab
      Vasilis Vryniotis authored
      * Encapsulate and standardize deform_conv2d (#3074)
      
      * Rename files.
      
      * Standardizing method names.
      
      * Adding anonymous namespaces.
      
      * Applying C++ naming rules and alinging variable names across headers and cpp files.
      
      * Syncing names across implementations.
      
      * Rename deform_conv2d.h to deform_conv2d.cpp
      
      * Use header files:
      - Create header files for kernel implementation and remove definitions from vision_*.h files.
      - Eliminate unnecessary headers and ensure all cpp include their headers.
      
      * Change the naming convention for kernel implementations.
      
      * Remove the _param postfix from the variables and standardizing names.
      
      * Exposing public forward/backward methods to the C++ API and moving methods around to minimize git blame changes.
      
      * Encapsulate and standardize nms (#3081)
      
      * Syncing, where possible, the names of functions across devices.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Renaming C++/CUDA kernel files and moving operator code from header to cpp file.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Removing unnecessary repeated includes.
      
      * Update CMakeLists.txt to include all headers.
      
      * Encapsulate and standardize ps_roi_align (#3082)
      
      * Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
      Syncing, where possible, the names of functions across devices.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Renaming C++/CUDA kernel files and moving operator code from header to cpp file.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Removing unnecessary repeated includes.
      
      * Encapsulate and standardize ps_roi_pool (#3084)
      
      * Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Renaming C++/CUDA kernel files and moving operator code from header to cpp file.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Removing unnecessary repeated includes.
      
      * Encapsulate and standardize roi_align (#3085)
      
      * Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Renaming C++/CUDA kernel files and moving operator code from header to cpp file.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Removing unnecessary repeated includes.
      
      * Encapsulate and standardize roi_pool  (#3088)
      
      * Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Syncing variable names between the cpp files and their header files.
      
      * Renaming C++/CUDA kernel files and moving operator code from header to cpp file.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Removing unnecessary repeated includes.
      
      * Encapsulate and standardize new_empty_tensor_op (#3089)
      
      * Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Convert to const ref all possible parameters.
      
      * Removing unnecessary repeated includes.
      
      * Encapsulate and standardize C++ Ops - Clean up (#3094)
      
      * Removing unnecessary repeated includes.
      
      * Remove unnecessary vision_cpu.h, vision_cuda.h, autocast.h.
      
      * Fixing naming convention and correcting method names on macros.
      
      * Turn on clang formatter for cu files and fixing broken styles.
      
      * Replace "#ifndef ... #define ... #endif" with "#pragma once" on header files.
      
      * Adding operator methods in vision::ops namespace. (#3096)
      
      * Adding operator methods in vision::ops namespace.
      
      * Replace general.h with macros.h
      
      * Adding vision.h to the necessary cpp files.
      0ebbb0ab
    • Francisco Massa's avatar
      Remove noexcept from cuda_version (#3091) · ac288eaf
      Francisco Massa authored
      Operator registration of functions with noexcept doesn't work on some compilers, see https://github.com/pytorch/pytorch/issues/48667
      ac288eaf
  10. 01 Dec, 2020 3 commits
  11. 19 Nov, 2020 1 commit
  12. 18 Nov, 2020 2 commits
    • Vasilis Vryniotis's avatar
      8c281757
    • 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
  13. 16 Nov, 2020 2 commits
  14. 10 Nov, 2020 1 commit
  15. 09 Nov, 2020 1 commit
  16. 04 Nov, 2020 1 commit
    • peterjc123's avatar
      Make read_file and write_file accept unicode strings on Windows (#2949) · f5c0bfa5
      peterjc123 authored
      * Make read_file accept unicode strings on Windows
      
      * More fixes
      
      * Remove definitions from source files
      
      * Move string definitions to header
      
      * Add checks
      
      * Fix comments
      
      * Update macro
      
      * Fix comments
      
      * Fix lint
      
      * include windows header
      
      * Change func signature in header
      
      * Use from_blob
      
      * Fix fread calls
      
      * Fix clang format
      
      * Fix missing return
      
      * Avoid copy
      f5c0bfa5
  17. 03 Nov, 2020 1 commit
  18. 02 Nov, 2020 1 commit
  19. 30 Oct, 2020 7 commits
    • Vasilis Vryniotis's avatar
      PSROIPool + Dispatcher + Autocast + Code Cleanup (#2926) · b93d5ee2
      Vasilis Vryniotis authored
      * Fixing types.
      
      * Dispatcher + Autocast.
      
      * + Autograd.
      
      * Formating.
      
      * Clean up and refactor PSROIPool implementation:
      - Remove primitive const declaration from method names.
      - Using references when possible.
      - Fix variable naming.
      
      * Restore include headers.
      
      * New line at end of file.
      
      * Resolving conflict, final cleanup, ordering method consistently across files.
      b93d5ee2
    • Vasilis Vryniotis's avatar
      ROIPool + Dispatcher + Autocast + Code Cleanup (#2922) · 0125a7dc
      Vasilis Vryniotis authored
      * Fixing types.
      
      * Dispatcher + Autocast.
      
      * + Autograd.
      
      * Formating.
      
      * Fixing return casting with autocast.
      
      * Clean up and refactor ROIPool implementation:
      - Remove primitive const declaration from method names.
      - Using references when possible.
      
      * Restore include headers.
      
      * New line at end of file.
      0125a7dc
    • Vasilis Vryniotis's avatar
      ROIAlign code cleanup (#2906) · f0c92d85
      Vasilis Vryniotis authored
      * Clean up and refactor ROIAlign implementation:
      - Remove primitive const declaration from method names.
      - Passing as const ref instead of value where possible.
      - Remove unnecessary headers.
      
      * Adding back include for cpu.
      
      * Restore include headers.
      f0c92d85
    • Vasilis Vryniotis's avatar
      PSROIAlign + Dispatcher + Autocast + Code Cleanup (#2928) · b06e43d6
      Vasilis Vryniotis authored
      * Fixing types.
      
      * Dispatcher + Autocast.
      
      * + Autograd.
      
      * Clean up and refactor PSROIAlign implementation:
      - Remove primitive const declaration from method names.
      - Using references when possible.
      - Sync naming of internal methods with other ops.
      
      * Restoring names of internal methods to avoid conflicts.
      
      * Restore include headers.
      b06e43d6
    • Vasilis Vryniotis's avatar
      DeformConv code cleanup (#2905) · 0e5aee46
      Vasilis Vryniotis authored
      * Clean up and refactor DeformConv implementation:
      - Remove primitive const declaration from method names.
      - Passing as const ref instead of value where possible.
      - Aligning method names between cpu and cuda.
      
      * Adding newline.
      
      * Adding back include for cpu.
      
      * Restoring method names of private methods to avoid conflicts.
      
      * Restore include headers.
      0e5aee46
    • Vasilis Vryniotis's avatar
      NMS code cleanup (#2907) · 455cd57c
      Vasilis Vryniotis authored
      * Clean up and refactor ROIAlign implementation:
      - Remove primitive const declaration from method names.
      - Remove unnecessary headers.
      - Aligning method names between cpu and cuda.
      
      * Adding back include for cpu.
      
      * Restoring method names of private methods to avoid conflicts.
      
      * Restore include headers.
      455cd57c
    • vfdev's avatar
      Fixes #2932 (#2937) · c9d9e67e
      vfdev authored
      - Replaced tuple creation by one acceptable by majority of compilers
      c9d9e67e
  20. 27 Oct, 2020 1 commit
  21. 26 Oct, 2020 4 commits
  22. 16 Oct, 2020 1 commit
    • bmanga's avatar
      Ensure torchvision operators are added in C++ (#2798) · adfc15c4
      bmanga authored
      * Ensure torchvision operators are registered in C++ via weak symbols
      
      * Add note to README on how to ensure that torchvision operators are available in C++
      
      * Fix dllimport/dllexport on windows, format files
      
      * Factor out common macros in single file
      
      * Expose cuda_version in the API, use it to avoid pruning of ops initializer
      adfc15c4
  23. 14 Oct, 2020 1 commit
    • Edgar Andrés Margffoy Tuay's avatar
      Fix wheel relocation issues (#2777) · 4db3dc6d
      Edgar Andrés Margffoy Tuay authored
      
      
      * [DEBUG] Check wheel relocation issues
      
      * Call delocate on Mac
      
      * Use yum instead of conda
      
      * Do not copy ffmpeg dylibs
      
      * Linux dry run
      
      * Do not download FFmpeg on Mac
      
      * Install bzip2
      
      * Restore FFmpeg on Windows
      
      * Remove ffmpeg temporarily
      
      * Do not remove dependencies
      
      * Disable FFmpeg temporarily on Linux wheels
      
      * Test relocation in Linux
      
      * Add docstring
      
      * Call relocation script
      
      * Minor error correction
      
      * Import auditwheel only on Linux
      
      * Restore ffmpeg again on Windows
      
      * Return *device
      
      * Try fix Windows
      
      * Fix clang-format
      
      * Start windows patchwork
      
      * Copy all DLLs
      
      * Disable FFmpeg on Windows for now
      
      * Bugfix
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      4db3dc6d
  24. 13 Oct, 2020 1 commit
    • vfdev's avatar
      Added rois shape check in C++ (#2794) · b8e93084
      vfdev authored
      * Added rois shape check in C++
      
      * Fixes code formatting
      
      * Remove accidental include
      
      * - Updated code according to the review
      - Replaced old AT_ASSERT/ERROR by new TORCH_CHECK
      b8e93084
  25. 11 Oct, 2020 1 commit