- 05 Apr, 2021 2 commits
-
-
Owen Wang authored
Summary: Prediction count evaluator needs to gather it's state before computing metrics, otherwise when parallelized across N GPUs, we only get metrics computed from 1/N of the dataset, increasing our eval signal's variance. Reviewed By: wat3rBro Differential Revision: D27416864 fbshipit-source-id: b2c5334cd5a38bebcd06c6ace1627a6b71645fdd
-
Sam Tsai authored
Summary: Add typing to transform. Reviewed By: wat3rBro Differential Revision: D27145140 fbshipit-source-id: 8556427b421bf91a05692a590db175c68c4d6890
-
- 03 Apr, 2021 2 commits
-
-
Peizhao Zhang authored
Summary: Make data and evaluation visualization optional. * could return None. Reviewed By: zhanghang1989, wat3rBro Differential Revision: D27316632 fbshipit-source-id: 2a85db4815cbf3407a20a74c125dcd52d75167fa
-
Peizhao Zhang authored
Summary: Format changes. * [Option] + [Shift] + [F] Reviewed By: mattcyu1, zhanghang1989, wat3rBro Differential Revision: D27316555 fbshipit-source-id: 0fc3396eb34d964478cb3551dc73b47412089ccb
-
- 02 Apr, 2021 1 commit
-
-
Yanghan Wang authored
Summary: #Facebook: `build_d2go_train_loader` will replace `runner.build_detection_train_loader`, currently we call `build_d2go_train_loader` from `runner.build_detection_train_loader` since some runner has there own implementation, we will solve those cases and remove the `runner.build_detection_train_loader` API. Currently `build_d2go_train_loader` uses `_MAPPED_TRAIN_LOADER_BUILDER_REGISTRY` to support different versions between OSS and FB, not sure if this is a good pattern or not, please comment in the diff if you have better idea. Reviewed By: zhanghang1989 Differential Revision: D27505681 fbshipit-source-id: b5caf7280a88c2ebccb498097c0b7af51c966fc6
-
- 31 Mar, 2021 3 commits
-
-
Kai Zhang authored
Reviewed By: newstzpz Differential Revision: D27255960 fbshipit-source-id: 1699ff23d2bc610dffc0215a90a7c1c17e3783c3
-
Sam Tsai authored
Summary: Fixing unit test that was not listed due to rebase error. Reviewed By: newstzpz, wat3rBro Differential Revision: D27456322 fbshipit-source-id: 519c5c086adfb19104ed99234f4f476eb34a79bc
-
Tao Xu authored
Summary: Train a pix2pix model on the paired dataset. During inference, it can transfer an source image to the target image. Reviewed By: newstzpz Differential Revision: D27371290 fbshipit-source-id: 3141bc6d9e4fe0013f6ea3de3cf998163d286168
-
- 30 Mar, 2021 3 commits
-
-
Sam Tsai authored
Summary: Separate unit tests into individual folder based on functionality. Reviewed By: wat3rBro Differential Revision: D27132567 fbshipit-source-id: 9a8200be530ca14c7ef42191d59795b05b9800cc
-
Hang Zhang authored
Summary: fixes https://github.com/facebookresearch/d2go/issues/27 Pull Request resolved: https://github.com/facebookresearch/d2go/pull/28 Reviewed By: newstzpz Differential Revision: D27214440 Pulled By: zhanghang1989 fbshipit-source-id: da538ad1e29faa9c36065db89138b1cc97045a28
-
Kapil Krishnakumar authored
Summary: On datasets that don't contain the dataset name / mapping, initialization using the parent visualizer class breaks. Split this into it's own function so that the functionality can be overridden in a subclass. Reviewed By: wat3rBro Differential Revision: D27412314 fbshipit-source-id: a91db47615b14ba982285ce819901b8db27e5693
-
- 29 Mar, 2021 5 commits
-
-
TannerGilbert authored
Summary: In 9d238344, the test utils were moved to the core library, but the import for the create_fake_detection_data_loader inside the d2go_beginner.ipynb wasn't updated. Pull Request resolved: https://github.com/facebookresearch/d2go/pull/29 Reviewed By: newstzpz Differential Revision: D27239846 Pulled By: zhanghang1989 fbshipit-source-id: e39df32746b1d1081026f9969bda84e73ac7df55
-
Yanghan Wang authored
Summary: all utils code are moved to d2go.utils.testing Reviewed By: newstzpz Differential Revision: D27209943 fbshipit-source-id: 6c5cb14858155a8ed13478d65ee8e02ef74616d7
-
Sanjeev Kumar authored
Summary: - Added support for running evaluation for models where the number of subclasses in the model output is less than the number of subclases in the annotated dataset Reviewed By: vivekn Differential Revision: D27090466 fbshipit-source-id: 704c438c1bbca333648c0477c412bf3ed79f04e7
-
Yanghan Wang authored
Summary: Add `build_auto_stream_train_loader` Reviewed By: newstzpz Differential Revision: D27343030 fbshipit-source-id: a79d3ed1ac41fc159d10bb6ff1db74549b645a1c
-
Yanghan Wang authored
Summary: The default mapper may load "file_name" and "sem_seg_file_name" from `dataset_dict`, when prefetching them from manifold, we no longer need to load them because they're already fetched. This diff adds two more fields for holding those pre-fetched data, and make the mapper work in both cases. Reviewed By: newstzpz Differential Revision: D26972340 fbshipit-source-id: 63f6dc809d321e149aa5adf9f92c3ace07cbf2a7
-
- 24 Mar, 2021 3 commits
-
-
Kai Zhang authored
Summary: Evaluate the predictor generated by previous step. This diff modify the lightning_train_net to reuse the evaluation logic by adding a `predictor_path` param. This diff also makes Lightning training backend depends on `cfg.MODEL.DEVICE` so that in evaluate_predictor step, user could set backend by changing model device. This is useful for evaluating int8 quantized model. Reviewed By: newstzpz Differential Revision: D27150609 fbshipit-source-id: fb72da3e81db932c0fa479350150720143e09a3e
-
Kai Zhang authored
Summary: As titled. Reviewed By: newstzpz Differential Revision: D27074737 fbshipit-source-id: 72f2535fc730a37f5ea8f58aaff88005c28ffc5b
-
Kai Zhang authored
Summary: Given that the way to create D2 (https://github.com/facebookresearch/d2go/commit/465cdb842513eb910aa20fcedea1d2edd15dc7b7)go runner and Lightning task are different, get_class was introduced so that in application we could do: ``` if is Lightning: task_cls = get_class(classname) task = task_cls(cfg) else: runner = create_runner(classname) ``` It turns out that we could need to do that in many places: workflow, binaries. This diff revert `get_class` and return class in `create_runner` if the class is a Lightning module. Reviewed By: newstzpz Differential Revision: D26676595 fbshipit-source-id: c3ce2016d09fe073af4c2dd9f98eea4e59ca621b
-
- 21 Mar, 2021 1 commit
-
-
Tao Xu authored
Summary: Prepare the launch script for IG, which support registering new dataset for GANs on the fly Reviewed By: newstzpz Differential Revision: D27211763 fbshipit-source-id: f79978ceae246ab4f27a8083d25dd50c62dcefab
-
- 20 Mar, 2021 1 commit
-
-
Yanghan Wang authored
Summary: Not d2go.tests is not a library for oss, move utils code to d2go.utils.testing Reviewed By: zhanghang1989 Differential Revision: D26706933 fbshipit-source-id: 85767b66bbb6c67db05e11823beb4840220b2aa3
-
- 18 Mar, 2021 2 commits
-
-
Ananth Subramaniam authored
Summary: `checkpoint_callback` is being phased out. Initially, it was a special way to configure checkpoints, but it makes more sense for those callbacks to be included in the general `callbacks` trainer argument. In 1.2.X, `checkpoint_callback` is expected to be a boolean value only. If `checkpoint_callback=False` **and** an instance of `ModelCheckpoint` is passed in the trainer's `callbacks` arguments, Lightning raises a [misconfiguration error](https://github.com/PyTorchLightning/pytorch-lightning/blob/2f6ce1ae7fff34d16d3707571f6a9a7b0fb0c50a/pytorch_lightning/trainer/connectors/callback_connector.py#L66-L70) Reviewed By: newstzpz Differential Revision: D27139315 fbshipit-source-id: 07ad5ea520583a2e46a9cb2a938f98968265c932
-
Owen Wang authored
Summary: Add option to specify a custom subclass id mapping. Allows for flexibility when training models with different outputs needed. Reviewed By: sanjeevk42 Differential Revision: D26826986 fbshipit-source-id: 9dba4f0f2f2afebd2f152ddd9aebd46cf4c86a0d
-
- 17 Mar, 2021 2 commits
-
-
Hang Zhang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/24 Reviewed By: wat3rBro Differential Revision: D27127642 Pulled By: zhanghang1989 fbshipit-source-id: 18bc3c2fa05232cacc778925db6b7dcea99b108c
-
Kai Zhang authored
Summary: As titled. The logs will be stored in scuba_caffe2_pytorch_usage_stats and can be queried like ``` WITH events AS ( SELECT DISTINCT workflow_run_id, REGEXP_EXTRACT(event, 'D2 (https://github.com/facebookresearch/d2go/commit/465cdb842513eb910aa20fcedea1d2edd15dc7b7)Go.Runner\.([a-zA-Z0-9_]*)', 1) AS runner_name, ds FROM scuba_caffe2_pytorch_usage_stats WHERE ds BETWEEN '$START_DATE$' AND '$END_DATE$' AND event LIKE '%D2 (https://github.com/facebookresearch/d2go/commit/465cdb842513eb910aa20fcedea1d2edd15dc7b7)Go.Runner%' AND flow_is_test = 0 AND flow_is_local_run = 0 AND workflow_run_id > 0 ) SELECT COUNT(1) AS total_runs, runner_name, ds FROM events GROUP BY ds, runner_name ORDER BY total_runs DESC ``` Reviewed By: colin2328 Differential Revision: D26032225 fbshipit-source-id: ab1e06f3b1af200baf530506be9b3894ddf77126
-
- 16 Mar, 2021 3 commits
-
-
Sam Tsai authored
Summary: Extend conversion to support ids beyond cocotext format where ids are strings. Reviewed By: newstzpz Differential Revision: D27018211 fbshipit-source-id: 7282fd4b9a7e9cd19323235ed1a3c3e7b33cb6b4
-
Xiaoliang Dai authored
Reviewed By: sanjeevk42 Differential Revision: D26922320 fbshipit-source-id: 8d6b4bc709d931020483284febede8cf8904d90f
-
Georgy Marrero authored
Summary: # context Right now, when we register Person or Hair data we have a mask directory with .PNGs inside and when we register MCS data we have multiple directories <class>_mask. These are 2 separate file structures to maintain. # this diff **This diff is to add support for the following file structure for *both* Multi-Class and Single-Class Semantic Segmentation:** ``` mask/ person/ hair/ skin/ beard/ clothes/ ``` **without breaking the previous format for Single-Class Semantic Segmentation (`mask/` with .PNGs).** # why? With this change, we'll be able to prepare data once (create the file structure and d2go coco jsons) and make it ready-to-be-registered for Single-Class Semantic Segmentation (Person or Hair) and Multi-Class Segmentation. We'll save on having to prepare the dataset 3 times and managing multiple copies of the same images and annotations. There will be one source of truth. For UGC, we'll be able to enforce privacy deletions with less complications. Also, this is the format used in the Video Eval tool. So data prepared for training can be used for video evaluation if needed and data prepared for video evaluation can easily be prepared for training. # to dos: - ~~Add the v2 path support on the Single-Class Segmentation's `SemSegEvaluator` so that the v2 format can be used for evaluation (sync with wat3rBro for best way to do this)~~ - **Done.** This happens automatically given the the Single-Class case in the `MultiSemSegEvaluator` class doesn't re-register the datasets. See the first job for an example. Reviewed By: wat3rBro Differential Revision: D26795469 fbshipit-source-id: 6ebbb1a430c049dad361d56842a587c76926ee23
-
- 12 Mar, 2021 1 commit
-
-
Dinesh S authored
Summary: **Added a Issue template** Issue : https://github.com/facebookresearch/d2go/issues/8 Pull Request resolved: https://github.com/facebookresearch/d2go/pull/15 Reviewed By: newstzpz Differential Revision: D26933233 Pulled By: zhanghang1989 fbshipit-source-id: af4af309fae3432021f15a6aecbbfb62e0c58be2
-
- 11 Mar, 2021 1 commit
-
-
Kai Zhang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/17 Use PyTorch Lightning checkpoint in the test. Reviewed By: zhanghang1989 Differential Revision: D26962697 fbshipit-source-id: abe635e374c3ada130243f0eaadff34204f04fa1
-
- 10 Mar, 2021 3 commits
-
-
TannerGilbert authored
Summary: Updated broken link to quantization-aware training section Pull Request resolved: https://github.com/facebookresearch/d2go/pull/14 Reviewed By: newstzpz Differential Revision: D26876105 Pulled By: zhanghang1989 fbshipit-source-id: b00bd08da2c8c8e478026ac154a2ca83fd4b19c9
-
Peizhao Zhang authored
Summary: Added model fusing for fp32 models for export. * We should fuse the fp32 model as well. Reviewed By: wat3rBro Differential Revision: D26785487 fbshipit-source-id: 6c14f746fd9eeb307b8ae465edbd4ef1335c9dd1
-
Peizhao Zhang authored
Summary: Skipped broken unit tests for exporter. * The qat exporter test is not working. See T85959661 Reviewed By: zhanghang1989 Differential Revision: D26785458 fbshipit-source-id: 813316e110698eeeb0b3afdf93d97b30f0b86508
-
- 09 Mar, 2021 1 commit
-
-
Yanghan Wang authored
Reviewed By: newstzpz Differential Revision: D26072333 fbshipit-source-id: 6727b34458d410e904045aa58f81c3e09111882a
-
- 08 Mar, 2021 1 commit
-
-
Yanghan Wang authored
Summary: PathManager is the old version, therefore config files are not saved to Manifold Reviewed By: sstsai-adl Differential Revision: D26882435 fbshipit-source-id: 089c53db90080737b10bafe43d154d34221a7ce2
-
- 07 Mar, 2021 1 commit
-
-
Hang Zhang authored
Summary: fixes https://github.com/facebookresearch/d2go/issues/9 Pull Request resolved: https://github.com/facebookresearch/d2go/pull/13 Reviewed By: wat3rBro Differential Revision: D26870048 Pulled By: zhanghang1989 fbshipit-source-id: 29298bca7a59aad214976aaa37461e3d316132d8
-
- 06 Mar, 2021 1 commit
-
-
Yanghan Wang authored
Reviewed By: zhanghang1989 Differential Revision: D26867453 fbshipit-source-id: 4c1c0ae8fcf0be5508f50f22d604d07350daabe1
-
- 05 Mar, 2021 3 commits
-
-
Xiaoliang Dai authored
Summary: Update the latency number in d2go Reviewed By: newstzpz Differential Revision: D26817844 fbshipit-source-id: 6a2e73956201ca58efafef0fcdef7a5f06ffea7b
-
Peizhao Zhang authored
Summary: migrated to iopath for d2go - rest. Reviewed By: zhanghang1989 Differential Revision: D26632160 fbshipit-source-id: 182fcd9ad493a483ab7f342f373a7be2de7d10ca
-
Peizhao Zhang authored
Summary: migrated to iopath for d2go - runner. Reviewed By: zhanghang1989 Differential Revision: D26632151 fbshipit-source-id: ff240967cf9f7ab8a68caee240ba56edaf507a02
-