- 12 Dec, 2020 2 commits
-
-
Jay Zhang authored
* Fix an issue that ShuffleNetV2 model is exported to a wrong ONNX file if dynamic_axes field was provided. * Add a ut for the bug fix. * Fix flake8 issue. * Don't access each element in x.shape, use x.size() instead. Co-authored-by:Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
David Fan authored
* Adapt to new torch export API for dictionary
-
- 11 Dec, 2020 1 commit
-
-
Vasilis Vryniotis authored
Co-authored-by:Francisco Massa <fvsmassa@gmail.com>
-
- 10 Dec, 2020 2 commits
-
-
David Fan authored
* Enable ONNX test in circle CI
-
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
-
- 08 Dec, 2020 2 commits
-
-
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.
-
Vasilis Vryniotis authored
-
- 04 Dec, 2020 1 commit
-
-
Francisco Massa authored
Makes it appease fbcode internal tests
-
- 03 Dec, 2020 2 commits
-
-
Francisco Massa authored
It's not used currently and can lead to exceptions such as runtime error: 5.7896e+76 is outside the range of representable values of type 'float'
-
Ashish Farmer authored
-
- 02 Dec, 2020 4 commits
-
-
Vasilis Vryniotis authored
* Fixing upperbound value on tests and documentation. * Limit the number of channels on adjust_* transoforms.
-
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.
-
Francisco Massa authored
For now this simplifies a few things for fbcode integration. We can add this back in the future
-
Zhengyang Feng authored
* Fill color support for tensor affine transforms * PEP fix * Docstring changes and float support * Docstring update for transforms and float type cast * Cast only for Tensor * Temporary patch for lack of Union type support, plus an extra unit test * More plausible bilinear filling for tensors * Keep things simple & New docstrings * Fix lint and other issues after merge * make it in one line * Docstring and some code modifications * More tests and corresponding changes for transoforms and docstring changes * Simplify test configs * Update test_functional_tensor.py * Update test_functional_tensor.py * Move assertions Co-authored-by:vfdev <vfdev.5@gmail.com>
-
- 01 Dec, 2020 2 commits
-
-
AdityaKhursale authored
* Fix: Improve the bounding boxes implementation Use write_png instead of PIL in test_draw_boxes() Initialize txt_font only once * Remove channels permutation in test_draw_boxes Co-authored-by:
Vasilis Vryniotis <datumbox@users.noreply.github.com> Co-authored-by:
Aditya Khursale <akhursale@nvidia.com> Co-authored-by:
Vasilis Vryniotis <datumbox@users.noreply.github.com>
-
Francisco Massa authored
* Add option to write audio to video file Summary: I was trying to use torchvision's `write_video` function and realized there was no option to add in the audio. Thus, this diff contains the changes necessary such that this is possible. This is my first time trying to contribute to this project, so be as harsh as you need! Reviewed By: fmassa Differential Revision: D21480083 fbshipit-source-id: 2e11f2c8728d42f86c94068f75b843793d5a94aa * Fix typo * Try fix Windows * Disable test on Windows Co-authored-by:Joanna Bitton <jbitton@fb.com>
-
- 30 Nov, 2020 2 commits
-
-
Vasilis Vryniotis authored
* Correcting incorrect types * Add missing type statement * Fix type annotations in unittest * Fix TypeError * Fix TypeError * Fix type equality judgment * Fix recursive compile * Use string for class name annotation. Co-authored-by:zhiqiang <zhiqwang@outlook.com>
-
Milos authored
* Fix writing to files by using get_tmp_dir() * Add ImageReadMode to imports * Fix failing test due to incorrect image path
-
- 27 Nov, 2020 4 commits
-
-
Vasilis Vryniotis authored
* Enable support for images without annotations * Ensuring gradient propagates to RegressionHead. * Rewriting losses to remove branching. * Fix the seed on DeformConv autocast test.
-
Vasilis Vryniotis authored
-
vfdev authored
[BC-breaking] Introduced InterpolationModes and deprecated arguments: resample and fillcolor (#2952) * Deprecated arguments: resample and fillcolor Replaced by interpolation and fill * Updates according to the review * Added tests to check warnings and asserted BC * [WIP] Interpolation modes * Added InterpolationModes enum * Added supported for int values for interpolation for BC * Removed useless test code * Fix flake8
-
Aditya Oke authored
* initital prototype * flake * Adds documentation * minimal working bboxes * Adds label display * adds colors :-) * adds suggestions and fixes CI * handles image of dim 4 * fixes image handling * removes dev file * adds suggested changes * Updating the API. * Update test. * Implementing code review improvements. * Further refactoring and adding test. * Replace random to white to reduce size and change font on tests. Co-authored-by:Vasilis Vryniotis <vvryniotis@fb.com>
-
- 26 Nov, 2020 1 commit
-
-
Santiago Castro authored
* Add a warning if a clip can't be get from a video in VideoClips * Update torchvision/datasets/video_utils.py Co-authored-by:
Philip Meier <github.pmeier@posteo.de> * Add a test Co-authored-by:
Philip Meier <github.pmeier@posteo.de>
-
- 20 Nov, 2020 2 commits
-
-
Vasilis Vryniotis authored
* Enable jit tests in all models and add warning if checkModule() tests are skipped. * Turning on JIT tests on CI. * Fixing broken unit-tests. * Refactoring and cleaning up duplicate code.
-
Alexey Demyanchuk authored
* Add explicit check for number of channels Example why you need to check it: `M = torch.randint(low=0, high=2, size=(6, 64, 64), dtype = torch.float)` When you put this input through to_pil_image without mode argument, it converts to uint8 here: ``` if pic.is_floating_point() and mode != 'F': pic = pic.mul(255).byte() ``` and change the mode to RGB here: ``` if mode is None and npimg.dtype == np.uint8: mode = 'RGB' ``` Image.fromarray doesn't raise if provided with mode RGB and just cut number of channels from what you have to 3 * Check number of channels before processing * Add test for invalid number of channels * Add explicit check for number of channels Example why you need to check it: `M = torch.randint(low=0, high=2, size=(6, 64, 64), dtype = torch.float)` When you put this input through to_pil_image without mode argument, it converts to uint8 here: ``` if pic.is_floating_point() and mode != 'F': pic = pic.mul(255).byte() ``` and change the mode to RGB here: ``` if mode is None and npimg.dtype == np.uint8: mode = 'RGB' ``` Image.fromarray doesn't raise if provided with mode RGB and just cut number of channels from what you have to 3 * Check number of channels before processing * Add test for invalid number of channels * Put check after channel dim unsqueeze * Add test if error message is matching * Delete redundant code * Bug fix in checking for bad types Co-authored-by:Demyanchuk <demyanca@mh-hannover.local> Co-authored-by:
vfdev <vfdev.5@gmail.com>
-
- 19 Nov, 2020 2 commits
-
-
Vasilis Vryniotis authored
* Add support of mode and remove channels. * Replacing integer mode with define constants.
-
Zhiqiang Wang authored
-
- 18 Nov, 2020 2 commits
-
-
Zhiqiang Wang authored
* Add AnchorGenerator with ground-truth outputs * Minor fixes
-
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.
-
- 12 Nov, 2020 2 commits
-
-
Vasilis Vryniotis authored
* Replace the Pallete with an RGB + Alpha file. * Correct typo on name.
-
Vasilis Vryniotis authored
Revert "Change the `SUM_OF_PRETRAINED_RESNET18_PARAMS` decimal values to resolve broken tests. (#2978)" (#2990) This reverts commit 1f4e3a46.
-
- 10 Nov, 2020 2 commits
-
-
Vasilis Vryniotis authored
* Add support of different color types in readpng. * Adding test images and unit-tests. * Use closest possible type. * Fix formatting.
-
Aditya Oke authored
* tries adding anchor tests * fixes lint * tries fixing * tries one more time * fixes the test
-
- 09 Nov, 2020 5 commits
-
-
Vasilis Vryniotis authored
-
Vasilis Vryniotis authored
* Making quantized inception torchscriptable. * Adding a test. * Fix mypy warning.
-
Francisco Massa authored
* Remove model download from tests * Refactor trainable_layers checks in detection models * Bugfix * Finish tests and fixes * Fix lint
-
Vasilis Vryniotis authored
* Change children() to modules() to ensure init happens in all blocks. * Update expected values of all detection models. * Revert "Update expected values of all detection models." This reverts commit 050b64ae * Update expecting values.
-
Licht Takeuchi authored
* Add modulation input for DeformConv2D * lint * Patch for GPU CI * Remove bad cache on CI
-
- 06 Nov, 2020 2 commits
-
-
vfdev authored
- fixed problem with error computation between results - refactored tensor cast for resize - fixed round usage
-
Vasilis Vryniotis authored
* Simplify the ACCEPT=True logic in assertExpected(). * Separate the expected filename estimation from assertExpected * Unflatten expected values. * Assert for duplicate scores if primary check fails. * Remove custom exceptions for algorithms and add a compact function for shrinking large ouputs. * Removing unused variables. * Add warning and comments. * Re-enable all autocast unit-test for detection and marking the tests as skipped in partial validation. * Move test skip at the end. * Changing the warning message.
-