- 19 Dec, 2022 1 commit
-
-
Haroun Habeeb authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/438 Adding new fields to a config is only allowed if `new_allowed=True`. yacs `CfgNode` provides a `set_new_allowed(value: bool)` function. We create a context manager like `temp_defrost` but for new_allowed to use it. We also implement unit test for the same Reviewed By: yanglinfang, newstzpz, wat3rBro Differential Revision: D41748992 fbshipit-source-id: 71d048511476001ca96e6b36dde4d177b11268d7
-
- 28 Oct, 2022 1 commit
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/404 `get_default_cfg` is now class method since stack of D37294926 (https://github.com/facebookresearch/d2go/commit/b077a2c13845d4ef8481979d64345368864fe5ff), this diff updates call sites using biggrep to replace "Runner().get_default_cfg" with "Runner.get_default_cfg" Reviewed By: itomatik Differential Revision: D40707898 fbshipit-source-id: 2b56545769d930d34dad8814d5bfeba4c54224fd
-
- 05 Jun, 2022 1 commit
-
-
Peizhao Zhang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/277 Support cfg_diff for mismatched keys. Reviewed By: wat3rBro Differential Revision: D36737254 fbshipit-source-id: a1c189c92a24f3c109d9a427f135e53876b91624
-
- 28 May, 2022 1 commit
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/264 Reviewed By: tglik Differential Revision: D36427439 fbshipit-source-id: 3502d61ccb3c3f67d7ccfc1f55777c74f6c3b970
-
- 15 May, 2022 1 commit
-
-
John Reese authored
Summary: Applies new import merging and sorting from µsort v1.0. When merging imports, µsort will make a best-effort to move associated comments to match merged elements, but there are known limitations due to the diynamic nature of Python and developer tooling. These changes should not produce any dangerous runtime changes, but may require touch-ups to satisfy linters and other tooling. Note that µsort uses case-insensitive, lexicographical sorting, which results in a different ordering compared to isort. This provides a more consistent sorting order, matching the case-insensitive order used when sorting import statements by module name, and ensures that "frog", "FROG", and "Frog" always sort next to each other. For details on µsort's sorting and merging semantics, see the user guide: https://usort.readthedocs.io/en/stable/guide.html#sorting Reviewed By: lisroach Differential Revision: D36402205 fbshipit-source-id: a4efc688d02da80c6e96685aa8eb00411615a366
-
- 26 Apr, 2022 1 commit
-
-
Jonathan Zeltser authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/202 This diff print the diff between the default config and the full config at the start of the run Reviewed By: wat3rBro Differential Revision: D35346096 fbshipit-source-id: 1ce9b58a8d613d1dd572358ce1e51462c90cb337
-
- 16 Mar, 2022 1 commit
-
-
Yanghan Wang authored
Summary: D33301363 changes the signature of `update_cfg` from `update_cfg(cfg, *updaters)` to `update_cfg(cfg, updaters, new_allowed)`, while the call sites are not updated. Eg. https://www.internalfb.com/code/fbsource/[9e071979a62ba7fd3d7a71dee1f0809815cbaa43]/fbcode/fblearner/flow/projects/mobile_vision/detectron2go/core/workflow.py?lines=221-225, the `merge_from_list_updater(e2e_train.overwrite_opts),` is then not used. For the fix: - Since there're a lot of call sites for `update_cfg` it's better to keep the original signature. - ~~~The `new_allowed` can actually be passed to each individual updater instead of the `update_cfg`, this also gives finer control.~~~ - Make override the `merge_from_list` to make it respect `new_allowed`. - Preserve the `new_allowed` for all nodes (not only the root) in the FLOW Future calls. Reviewed By: zhanghang1989 Differential Revision: D34840001 fbshipit-source-id: 14aff6bec75a8b53d4109e6cd73d2494f68863b4
-
- 26 Oct, 2021 1 commit
-
-
Yanghan Wang authored
Summary: as title Reviewed By: Cysu Differential Revision: D31901433 fbshipit-source-id: 1749527c04c392c830e1a49bca8313ddf903d7b1
-
- 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
-
- 16 Aug, 2021 1 commit
-
-
Hang Zhang authored
Summary: Add FBNAS toolkit for HPO in D2 (https://github.com/facebookresearch/d2go/commit/adf223bdac5b534514a8ba80f6bd61fc9dd8b464)Go Reviewed By: newstzpz Differential Revision: D28672821 fbshipit-source-id: 6a378af2bb43ef6cb556d4158fd1b0d3e363e956
-
- 01 Jun, 2021 1 commit
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/77 - Reimplement `get_cfg_diff_table` by reusing other utils - Adding `reorder` option for `flatten_config_dict` - Remove the legacy BC support for `ARCH_DEF`, including `str_wrap_fbnet_arch_def` and customized `merge_from_other_cfg`. - Move `temp_defrost` from `utils.py` to `config.py`, this way there's no more namespace forwarding for `utils.py` - Merge `test_config_utils.py` and `test_configs.py` Reviewed By: zhanghang1989 Differential Revision: D28734493 fbshipit-source-id: 925f5944cf0e9019e4c54462e851ea16a5c94b8c
-
- 31 Mar, 2021 1 commit
-
-
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
-
- 30 Mar, 2021 1 commit
-
-
Sam Tsai authored
Summary: Separate unit tests into individual folder based on functionality. Reviewed By: wat3rBro Differential Revision: D27132567 fbshipit-source-id: 9a8200be530ca14c7ef42191d59795b05b9800cc
-
- 03 Mar, 2021 1 commit
-
-
facebook-github-bot authored
fbshipit-source-id: f4a8ba78691d8cf46e003ef0bd2e95f170932778
-