"vscode:/vscode.git/clone" did not exist on "9c38b35fb6437d4723550250dbfd1b2e97f580ec"
- 13 Oct, 2021 2 commits
-
-
Daniel Haziza authored
Summary: The assert just below fails because `backend = "NCCL"` and we don't have a GPU Reviewed By: ppwwyyxx Differential Revision: D31506095 fbshipit-source-id: c1199eeb732d098c02fe5cd40efb85284deaa3b9
-
Yanghan Wang authored
Summary: No usage: https://www.internalfb.com/code/search?q=filepath%3Ad2go%2F%20repo%3Afbcode%20_mock_func Differential Revision: D31591868 fbshipit-source-id: 3fc6103c40713fa7bf278fd57a3e8fb4436a0902
-
- 09 Oct, 2021 1 commit
-
-
Tao Xu authored
Summary: Fix a failure bug in real image driving generating Reviewed By: yc-fb Differential Revision: D31362721 fbshipit-source-id: b222745aada1bd6680ca931d49a70d8b428828a6
-
- 07 Oct, 2021 2 commits
-
-
Yanghan Wang authored
Summary: EMA is only applicable when testing non-predictor based models, this diff simply add a check so it won't evaluate ema models. Side note: `do_test` should probably just handle single model, in the case of EMA, we could let `do_train` to return two models with and without ema, and call `do_test` on each of them. Then the temporary fix in this diff is not needed at all. Reviewed By: wrlife Differential Revision: D31450572 fbshipit-source-id: 8696922a9fd194f91315d2f3480dc8bfd8f36a3d
-
Yuxin Wu authored
Summary: the LR scheduler is cosine, so this config has no effect. Remove it to avoid confusion. Reviewed By: sstsai-adl Differential Revision: D31444047 fbshipit-source-id: b40e0d7d923c3b55dfe23353050ea0238b3afd16
-
- 06 Oct, 2021 1 commit
-
-
Supriya Rao authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/124 Update callsites from torch.quantization to torch.ao.quantization Reviewed By: z-a-f, jerryzh168 Differential Revision: D31286125 fbshipit-source-id: ef24ca87d8db398c65bb5b89f035afe0423a5685
-
- 01 Oct, 2021 2 commits
-
-
Hang Zhang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/116 Reviewed By: newstzpz Differential Revision: D30860098 fbshipit-source-id: 5c9422dd91d305193f9b43869f12423660217010
-
Sam Tsai authored
Summary: Add get_tbx_writer to runner class and call that in the do_train. Make tbx writer overridable. (see D31289763 for a use case) Reviewed By: zhanghang1989 Differential Revision: D31289763 fbshipit-source-id: 19ddbbe8df62f9da0640f595532cd8f1296e3be8
-
- 27 Sep, 2021 2 commits
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/118 This diff adds the proper support for using scripting when exporting model. Rename tracing-related code: - Previously `trace_and_save_torchscript` is the primary function to export model, replace it with `export_optimize_and_save_torchscript`. - Also rename `D2 (https://github.com/facebookresearch/d2go/commit/7992f91324aee6ae59795063a007c6837e60cdb8)TorchscriptTracingExport` to `TracingAdaptedTorchscriptExport` since it's not only for tracing now. Introduce `jit_mode`: - Add `jit_mode` option as the `export_kwargs` of ExportMethod. - Add `scripting` and `tracing` trigger words to overwrite `jit_mode`. Please note that the `tracing` now applies to all models, which is different from the previous meaning (using `TracingAdapter` for RCNN). - Therefore there're two ways of using scripting mode, 1) setting `jit_mode` in prepare_for_export; 2) using `script` trigger words. Add unit test as examples to illustrate two ways. - Don't use `TracingAdapter` when scripting since it's not scriptable. Consolidate triggering words logic. - Group logic of handling trigger words (eg. `_mobile`, `_int8`, `scripting`, `tracing`) into a single decorator `update_export_kwargs_from_export_method` for better structuring and readability. Reviewed By: zhanghang1989 Differential Revision: D31181624 fbshipit-source-id: 5fbb0d4fa4c29ffa4a761af8ea8f93b4bad4cef9
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/119 Reviewed By: zhanghang1989 Differential Revision: D31181216 fbshipit-source-id: 428116f4f4144e20410222825a9a00f75253ef4a
-
- 24 Sep, 2021 5 commits
-
-
Lei Tian authored
Summary: deprecate terminate_on_nan in pytorch lightning's default trainer config Reviewed By: kazhang, wat3rBro Differential Revision: D30910709 fbshipit-source-id: cb22c1f5f1cf3a3236333f21be87756d3f657f78
-
Hang Zhang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/117 Fix github ci failure due to lack of coco datset. It was cased by D31134064 (https://github.com/facebookresearch/d2go/commit/f018d4a7ceef437d8fc3ca8b2bba4b7321917e06) Reviewed By: mattcyu1, wat3rBro Differential Revision: D31179666 fbshipit-source-id: fe25129d167afcdcb577e5c8d82f3432ba939ca9
-
Yanghan Wang authored
Reviewed By: zhanghang1989 Differential Revision: D31134064 fbshipit-source-id: 825ca14477243a53f84b8521f4430a2b080324bd
-
Yanghan Wang authored
Summary: D31134064 changes the default ExportMethod from `DefaultTorchscriptExport` to `D2 (https://github.com/facebookresearch/d2go/commit/7992f91324aee6ae59795063a007c6837e60cdb8)TorchscriptTracingExport` for all models. Without change, all models will be wrapped using `TracingAdapter`, which might cause unexpected effects (eg. it's not scripting friendly). This diff add check for input/output data structure and only wrap the model when necessary. Reviewed By: zhanghang1989 Differential Revision: D31136261 fbshipit-source-id: 4a8ffc986a5c5d61c493dd4ba0eb185aa0d54f38
-
Yuxin Wu authored
Summary: write to file instead. Reviewed By: sstsai-adl Differential Revision: D31151549 fbshipit-source-id: 728e68182cedd625cdbe057da4162a441b80c2a4
-
- 22 Sep, 2021 1 commit
-
-
Lei Tian authored
Summary: fix optimizer setting in pytorch lightning Reviewed By: wat3rBro Differential Revision: D30988441 fbshipit-source-id: fcd2f4c77a87a790d7e99b0e3c833c291fd66e77
-
- 21 Sep, 2021 2 commits
-
-
Georgy Marrero authored
Summary: This diff adds the sum of all the losses as `total_loss` and logs it. Reviewed By: kazhang Differential Revision: D31063260 fbshipit-source-id: 3012dd49dd8f5fc60a7c32f3ad7a3477d2b6f5a0
-
Yanghan Wang authored
Summary: Might causing https://github.com/facebookresearch/d2go/issues/113. Reviewed By: kazhang Differential Revision: D31066641 fbshipit-source-id: 563c2cb255b1cca4a12c8adfafc7380f140efde5
-
- 20 Sep, 2021 2 commits
-
-
Yanghan Wang authored
Reviewed By: ppwwyyxx Differential Revision: D31035247 fbshipit-source-id: 7340e6f6bb813e284416e37060d0d511c5c79e03
-
Shiyu Dong authored
Summary: As title, sometimes new_ds_name is not registered so it crashes the program when calling remove(). Adding a check. A side effect to this is if it's not registered, get() method will register it first and then remove() will remove it from registery. Reviewed By: ppwwyyxx Differential Revision: D31049303 fbshipit-source-id: 149168fb89fd3b661b60717ff2aafa7a9bd52849
-
- 18 Sep, 2021 2 commits
-
-
Hang Zhang authored
Reviewed By: larryliu0820 Differential Revision: D30390706 fbshipit-source-id: 49f83f884f497df227448f7e59903bd1bd6e5484
-
Yuxin Wu authored
Differential Revision: D30973518 fbshipit-source-id: fbdfb862ab23d5141553499471f92d2218addf91
-
- 15 Sep, 2021 2 commits
-
-
Valentin Andrei authored
Reviewed By: stephenyan1231 Differential Revision: D30827134 fbshipit-source-id: e0fcb3b5f62d52283c08870dc9062c2086faf163
-
Valentin Andrei authored
Reviewed By: stephenyan1231, zhanghang1989 Differential Revision: D30903817 fbshipit-source-id: 578e6b02a1bd59b1bd841399fc60111d320ae9aa
-
- 10 Sep, 2021 1 commit
-
-
Tong Xiao authored
Summary: To make it easier for reuse Reviewed By: HarounH, wat3rBro Differential Revision: D30813080 fbshipit-source-id: 79eccbf7f16610e1050c461cd687568bdc262706
-
- 09 Sep, 2021 1 commit
-
-
Yanghan Wang authored
Summary: https://fb.workplace.com/groups/pythonfoundation/posts/2990917737888352 Remove `mobile-vision` from opt-out list; leaving `mobile-vision/SNPE` opted out because of 3rd-party code. arc lint --take BLACK --apply-patches --paths-cmd 'hg files mobile-vision' allow-large-files Reviewed By: sstsai-adl Differential Revision: D30721093 fbshipit-source-id: 9e5c16d988b315b93a28038443ecfb92efd18ef8
-
- 08 Sep, 2021 1 commit
-
-
Yanghan Wang authored
Differential Revision: D30624781 fbshipit-source-id: 6538813c886ffb9eae2e1d88d500f34c61cae5c0
-
- 02 Sep, 2021 2 commits
-
-
Lydia Chan authored
Summary: ## Context - The current limit on the number of detections per image (`K`) in LVIS is 300. - Implementing AP_pool/AP_fixed requires removing this default limit on `K` - [Literature](https://arxiv.org/pdf/2102.01066.pdf) has shown that increasing `K` correlates with AP gains ## This Diff - Changed limit on number of detections per image (`K`) to be customizable for LVIS and COCO through `TEST.DETECTIONS_PER_IMAGE` in the config - For COCO: - Maintain the default `max_dets_per_image` to be [1, 10, 100] as from [COCOEval](https://www.internalfb.com/code/fbsource/[88bb57c3054a]/fbcode/deeplearning/projects/cocoApi/PythonAPI/pycocotools/cocoeval.py?lines=28-29) - Allow users to input a custom integer for `TEST.DETECTIONS_PER_IMAGE` in the config, and use [1, 10, `TEST.DETECTIONS_PER_IMAGE`] for COCOEval - For LVIS: - Maintain the default `max_dets_per_image` to be 300 as from [LVISEval](https://www.internalfb.com/code/fbsource/[f6b86d023721]/fbcode/deeplearning/projects/lvisApi/lvis/eval.py?lines=528-529) - Allow users to input a custom integer for `TEST.DETECTIONS_PER_IMAGE` in the config, and use this in LVISEval - Added `COCOevalMaxDets` for evaluating AP with the custom limit on number of detections per image (since default `COCOeval` uses 100 as limit on detections per image for evaluating AP) ## Inference Runs using this Diff - Performed inference using `K = {300, 1000, 10000, 100000}` - Launched fblearner flows for object detector baseline models with N1055536 (LVIS) and N1055756 (COCO) - Recorded [results of running inference](https://docs.google.com/spreadsheets/d/1rgdjN2KvxcYfKCkGUC4tMw0XQJ5oZL0dwjOIh84YRg8/edit?usp=sharing) Reviewed By: ppwwyyxx Differential Revision: D30077359 fbshipit-source-id: 372eb5e0d7c228fb77fe23bf80d53597ec66287b
-
Zhicheng Yan authored
Summary: For training DF-DETR with swin-transformer backbone which uses large size_divisibility 224 (=32 * 7) and potentially has more zero-padding, we find the regressed box can contain NaN values and fail the assertion here (https://fburl.com/code/p27ztcce). This issue might be caused by two potential reasons. - Fix 1. In DF-DETR encoder, the reference points prepared by `get_reference_points()` can contain normalized x,y coordinates larger than 1 due to the rounding issues during mask interpolation across feature scales (specific examples can be given upon request LoL). Thus, we clamp max of x,y coordinates to 1.0. - Fix 2. The MLP used in bbox_embed heads contains 3 FC layers, which might be too many. We introduce an argument `BBOX_EMBED_NUM_LAYERS` to allow users to configure the number of FC layers. This change is back-compatible. Reviewed By: zhanghang1989 Differential Revision: D30661167 fbshipit-source-id: c7e94983bf1ec07426fdf1b9d363e5163637f21a
-
- 31 Aug, 2021 2 commits
-
-
Yanghan Wang authored
Differential Revision: D30615605 fbshipit-source-id: d4d4550b6d1da4c75945ba674fbdd49a842ec6a9
-
Yanghan Wang authored
Summary: Enable the inference for boltnn (via running torchscript). - merge rcnn's boltnn test with other export types. - misc fixes. Differential Revision: D30610386 fbshipit-source-id: 7b78136f8ca640b5fc179cb47e3218e709418d71
-
- 30 Aug, 2021 2 commits
-
-
Jake Popham authored
Summary: Refactors the `MODEL.REGRESSOR.PREPROCESSORS` usage to allow for multiple preprocessors, and adds a new `ADD_COORD_CHANNELS` preprocessor. Note: `MODEL.FBNET_V2.STEM_IN_CHANNELS` should be modified in your config to reflect the preprocessors that are enabled. Specifically, `ADD_COORD_CHANNELS` increases the input channels by 2, while `SPLIT_AND_CONCAT` decreases by a factor of the chunk size (typically 2). See the included `quick_pupil_3d_*` configs as an example. Differential Revision: D30459924 fbshipit-source-id: dd8e3293a416a1a556e091cecc058a1be5288cc0
-
Xiaoliang Dai authored
Summary: Support customized subclass selection. Only the selected gestures are used for model training. Reviewed By: sanjeevk42 Differential Revision: D30205443 fbshipit-source-id: 36337893aa5d06bb8be5d5587da11398b246b02e
-
- 27 Aug, 2021 1 commit
-
-
Jake Popham authored
Summary: d2go/modeling/misc.py is open source, and references an internal code path in its docstring. This diff removes that reference. Reviewed By: wat3rBro Differential Revision: D30578876 fbshipit-source-id: b255af215e6c096f62f17f65c5f72a0ab95458a9
-
- 25 Aug, 2021 2 commits
-
-
Kai Zhang authored
Summary: All metrics should have been reduced on rank 0 by dataset evaluator. Reviewed By: wat3rBro Differential Revision: D30389938 fbshipit-source-id: f8dfb6f1f17635c2fb98391780fdefe90c630054
-
Zhicheng Yan authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/106 # 2-stage DF-DETR DF-DETR supports 2-stage detection. In the 1st stage, we detect class-agnostic boxes using the feature pyramid (a.k.a. `memory` in the code) computed by the encoder. Current implementation has a few flaws - In `setcriterion.py`, when computing loss for encoder 1st stage predictions, `num_boxes` should be reduced across gpus and also clamped to be positive integer to avoid divide-by-zero bug. Current implementation will lead to divide-by-zero NaN issue when `num_boxes` is zero (e.g. no box annotation in the cropped input image). - In `gen_encoder_output_proposals()`, it manually fill in `float("inf")` at invalid spatial positions outside of actual image size. However, it is not guaranteed that those positions won't be selected as top-scored positions. `float("inf")` can easily cause affected parameters to be updated to NaN value. - `class_embed` for encoder should has 1 channel rather than num_class channels because we only need to predict the probability of being a foreground box. This diff fixes the issues above. # Gradient blocking in decoder Currently, gradient of reference point is blocked at each decoding layer to improve numerical stability during training. In this diff, add an option `MODEL.DETR.DECODER_BLOCK_GRAD`. When False, we do NOT block the gradient. Empirically, we find this leads to better box AP. Reviewed By: zhanghang1989 Differential Revision: D30325396 fbshipit-source-id: 7d7add1e05888adda6e46cc6886117170daa22d4
-
- 24 Aug, 2021 1 commit
-
-
Hang Zhang authored
Summary: Update weights path in [previous commit](https://github.com/facebookresearch/d2go/commit/477ab964e2165cb586b5c00425f6e463d7edeadd) fixes https://github.com/facebookresearch/d2go/issues/108 Pull Request resolved: https://github.com/facebookresearch/d2go/pull/109 Reviewed By: wat3rBro Differential Revision: D30505672 Pulled By: zhanghang1989 fbshipit-source-id: dc946348549a171a6ce058411be2bfd9fa2dad2c
-
- 20 Aug, 2021 1 commit
-
-
Yanghan Wang authored
Summary: `export_predictor` is now not customizable, all customization will be done via `prepare_for_export` and `ModelExportMethod` Reviewed By: zhanghang1989 Differential Revision: D28083607 fbshipit-source-id: e584fff185912ca3e985194b741860276f0943df
-
- 18 Aug, 2021 2 commits
-
-
Siddharth Shah authored
Summary: A torch version which is batched allows us to avoid CPU <--> GPU copy which gets us ~200ms per iteration saving. This new version of generating boundary weight mask produces identical masks. Reviewed By: wat3rBro Differential Revision: D30176412 fbshipit-source-id: 877f4c6337e7870d3bafd8eb9157ac166ddd588a
-
Valentin Andrei authored
Summary: Added multi-tensor optimizer implementation for SGD, from `torch.optim._multi_tensor`. It can potentially provide ~5% QPS improvement by using `foreach` API to speed up the optimizer step. Using it is optional, from the configuration file, by specifying `SGD_MT` in the `SOLVER.OPTIMIZER` setting. Reviewed By: zhanghang1989 Differential Revision: D30377761 fbshipit-source-id: 06107f1b91e9807c1db5d1b0ca6be09fcbb13e67
-