- 27 May, 2023 1 commit
-
-
Ajinkya Deogade authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/559 Create modular TARGETS for files inside `runner`. Reviewed By: wat3rBro Differential Revision: D45854271 fbshipit-source-id: a15ef475f72685ae8c3c73e0a83cf136a7285d3e
-
- 25 May, 2023 1 commit
-
-
Jiaxu Zhu authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/548 As title, by setting ``` SOLVER.DETERMINISTIC = True SEED = 42 # or other values ``` Training results are reproducible Reviewed By: wat3rBro, rkaarimi Differential Revision: D46174626 fbshipit-source-id: d6665b777376a176bd46a1286c3199ed0da26ae6
-
- 24 May, 2023 1 commit
-
-
Ajinkya Deogade authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/545 Expanding the relative imports to absolute ones helps the autodeps down the stack. Reviewed By: tglik Differential Revision: D45912074 fbshipit-source-id: d42c9756dde731504ee6fd0f93cf549d71157489
-
- 16 May, 2023 1 commit
-
-
Jiaxu Zhu authored
Summary: X-link: https://github.com/facebookresearch/detectron2/pull/4955 Pull Request resolved: https://github.com/facebookresearch/d2go/pull/540 Allow users to launch deterministic training jobs. That is, using the same training config, users can get identical training results. Reviewed By: dilinwang820 Differential Revision: D45370627 fbshipit-source-id: 88db388c992500b0d789b8341952502cd1f8f995
-
- 10 May, 2023 1 commit
-
-
Mik Vyatskov authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/537 For some reason numba cannot work with the print being overwritten by a local variable. However when the override is a module attribute, it seems to work. Reviewed By: navsud Differential Revision: D45730776 fbshipit-source-id: fee1288b1adb43f69fe7c4e43f4a8a750f0b98b4
-
- 05 Apr, 2023 1 commit
-
-
Mik Vyatskov authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/523 To avoid setting it up multiple times, add run_once() decorator. Additionally make sure logging is configured for datalodaing workers, which have a different entry point, by moving setting up logging to the import time. Right now when a dataloader worker is created using spawn method from multiprocessing module, a new Python interpreter is created, with all the modules imported anew and with the entry point set to the method specified. This means that the entry point of the training framework is skipped, together with the logging setup. With this change, the logging is configured on the import time, which means that when a dataloading process is created, even though the training main is not invoked, the logging is still configured because even though train_net is not invoked as an entry point, it's still imported in the child process. Reviewed By: miqueljubert Differential Revision: D44641142 fbshipit-source-id: 06ea85363d965b31d7f9ade3c2615ed9db67470b
-
- 31 Mar, 2023 2 commits
-
-
Mik Vyatskov authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/521 Further along the setup, D2Go loggers will have logging level set to debug. Setting logging level as debug for every process introduces unnecessary logs. Reviewed By: miqueljubert Differential Revision: D44561105 fbshipit-source-id: 536f75bb886aec644207933e9baeb91a862a7ca7
-
Mik Vyatskov authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/510 This change allows to more granularly configure initial logging setup as part of a separate module. Reviewed By: tglik Differential Revision: D44278485 fbshipit-source-id: 2f421ee4e7f9017ef8ebccb9ff51f4177b8628b9
-
- 23 Mar, 2023 1 commit
-
-
Mik Vyatskov authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/509 print function is used all over the place and it's not realistic to enforce not using print for everyone. So this diff attempts to improve the debuggability of the code that was written using prints by redirecting prints to the logging module. Additionally call logger setup from `setup_after_launch` to make sure logging settings are applied in every of the spawned processes. Reviewed By: frabu6, wat3rBro Differential Revision: D44280241 fbshipit-source-id: 713400ac2b2edacef3c7a99067cbb1e684c3c5ad
-
- 01 Feb, 2023 1 commit
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/461 There're needs for extending trainer parameters that are not in (or conflict with) the base d2go config, this diff adds a way to inject those configs without touching the base d2go config. - In `get_trainer_params`, it simply checks the `LIGHTNING_TRAINER` and use whatever configs under it. - Adds `GeneralizedRCNNTaskNoDefaultConfig`, which allows specify default config via yaml file for `GeneralizedRCNNTask`. (also make some changes for prerequisite) - (next diff) User can add their own config updater by registering it in `CONFIG_UPDATER_REGISTRY`. Differential Revision: D42928992 fbshipit-source-id: f2a1d8a3f2bec9908bb1af03928611d963b92c0e
-
- 14 Nov, 2022 1 commit
-
-
Miquel Jubert Hermoso authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/388 Reviewed By: wat3rBro Differential Revision: D40377653 fbshipit-source-id: 3f99d30480a801c794665e67bb2b0d28c7c5b0e5
-
- 23 Oct, 2022 1 commit
-
-
Tsahi Glik authored
Summary: X-link: https://github.com/facebookresearch/mobile-vision/pull/116 Pull Request resolved: https://github.com/facebookresearch/d2go/pull/398 D2 (https://github.com/facebookresearch/d2go/commit/87374efb134e539090e0b5c476809dc35bf6aedb)Go doesn't have per node initialization api, but only per worker initialization that happens per subprocess. Some projects (like IOBT) need to way to do shared initialization before spawning all the workers in subprocess and pass this initialized shared context to the workers. This diff adds API to create a shared context object before launching workers and then use this shared context by the runners inside the workers after launch. Reviewed By: wat3rBro Differential Revision: D40001329 fbshipit-source-id: 231a4e7e4da7b5db50849176c58b104c4565306a
-
- 09 Aug, 2022 1 commit
-
-
Mik Vyatskov authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/356 Attaching PDB on failure is not working when running in distributed environment. This change allows to disable this behavior by passing a command line argument. Reviewed By: miqueljubert Differential Revision: D38514736 fbshipit-source-id: 2e0008d6fbc6a4518a605debe67d76f8354364fc
-
- 24 Jun, 2022 1 commit
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/312 As discussed, we decided to not use runner instance outside of `main`, previous diffs already solved the prerequisites, this diff mainly does the renaming. - Use runner name (str) in the fblearner, ML pipeline. - Use runner name (str) in FBL operator, MAST and binary operator. - Use runner class as the interface of main, it can be either the name of class (str) or actual class. The main usage should be using `str`, so that the importing of class happens inside `main`. But it's also a common use case to import runner class and call `main` for things like ad-hoc scripts or tests, supporting actual class makes it easier modify code for those cases (eg. some local test class doesn't have a name, so it's not feasible to use runner name). Reviewed By: newstzpz Differential Revision: D37060338 fbshipit-source-id: 879852d41902b87d6db6cb9d7b3e8dc55dc4b976
-
- 22 Jun, 2022 1 commit
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/310 One step towards using runner class across board. This is also need for supporting LazyConfig (which is runner-less) Reviewed By: mcimpoi Differential Revision: D37294926 fbshipit-source-id: f6dfc0a1103bac328ac7b337ce3aaefd5d8d85b4
-
- 18 Jun, 2022 1 commit
-
-
Tsahi Glik authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/297 X-link: https://github.com/facebookresearch/mobile-vision/pull/84 Add command line arg to specify whether and where to save results. This is useful where binaries are being launched from another process, or remotely on another machine. Reviewed By: wat3rBro Differential Revision: D37157955 fbshipit-source-id: 2a48cf967f6cf928049f2be41952834e1dd2a04d
-
- 16 Jun, 2022 2 commits
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/271 - set `get_default_cfg = None` to opt-in this new feature. - support config with `_DEFAULTS_` when loading config file. Note that we don't check explicitly `"_DEFAULTS_" in config file` but check `runner.get_default_cfg == None`, this is because runner having `get_default_cfg` and config having `_DEFAULTS_` should be mutually exclusive, and `load_full_config_from_file` can raise proper error if `_DEFAULTS_` is missing. - we also need to save `_DEFAULTS_` in the diff config. Reviewed By: tglik Differential Revision: D36868581 fbshipit-source-id: e0e19309c3df5a85383ce1454b321a68d0868dc4
-
Mik Vyatskov authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/301 This is a follow-up of earlier work to extract part responsible for the centrally defined parameters from the helper in train_net closer to where the parameters are defined. Reviewed By: tglik Differential Revision: D37176212 fbshipit-source-id: 226415f36f4872ac3d9ba41541b4389a18cc11e6
-
- 15 Jun, 2022 1 commit
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/295 `requires_config_file=False` is only used for `caffe2_int8_converter.py` and `caffe2_evaluator.py`. Both are deprecated, therefore drop the support. Reviewed By: tglik Differential Revision: D37120584 fbshipit-source-id: 477a1c4d3be813c678f1e2a772211d1742f5ad3c
-
- 14 Jun, 2022 1 commit
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/285 `setup_after_launch` can now take `DefaultTask` as well (the `runner_or_task` can still be `None`, for runner-less train_net). Reviewed By: tglik Differential Revision: D37011560 fbshipit-source-id: ce8a88242df0a16de8da97d94e8eb7def524c69c
-
- 09 Jun, 2022 1 commit
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/274 X-link: https://github.com/facebookresearch/mobile-vision/pull/76 TLDR: this diff consolidate the `distributed_helper` of `mobile_cv`, it (together with `mobile_cv`'s `comm` module) should be the TOGO library for dealing with DDP. D2 (https://github.com/facebookresearch/d2go/commit/87374efb134e539090e0b5c476809dc35bf6aedb)Go's `distributed` is now built on-top of `mobile_cv`'s `distributed_helper`. Reviewed By: newstzpz Differential Revision: D36787336 fbshipit-source-id: 640c9dcff5eec534e7894c75cfdf0a12d21c297e
-
- 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
-
- 14 May, 2022 1 commit
-
-
Yanghan Wang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/242 Reviewed By: newstzpz Differential Revision: D36297282 fbshipit-source-id: 8efb19b3186f6978283f4e17e0628b55c2ec816e
-
- 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
-
-
Chengjiang Long authored
Summary: Dataloader: Rewrote the data loader via build_stream_dataset_reader with the DATASET_DEFINITION of "peopleai_face_eng_inference_results". User Calibration Model (initial version): nn.Sequential( nn.Conv1d(72, 128, 1), nn.BatchNorm1d(128), nn.ReLU(), nn.Flatten(), nn.Linear(128, 72), ) Differential Revision: D34202009 fbshipit-source-id: 55a2c579e463ed19eac38b5dd12e11c09cbccc11
-
- 18 Jan, 2022 1 commit
-
-
Miquel Jubert Hermoso authored
Summary: The type signature of create_runner is not accurate. We expect lightning runners to follow DefaultTask. Also change setup.py to not import directly, which was causing circular dependencies together with the change. Reviewed By: wat3rBro Differential Revision: D32792069 fbshipit-source-id: 0fbb55eb269dd681dbc8df49d71c9635f56293b8
-
- 02 Dec, 2021 1 commit
-
-
Yuxin Wu authored
Summary: will help debugging Reviewed By: tglik Differential Revision: D32771358 fbshipit-source-id: 659c0edc79354ca8688b13058f784f653c0cff37
-
- 20 Oct, 2021 1 commit
-
-
Yuxin Wu authored
Summary: helps debugging Reviewed By: zhanghang1989 Differential Revision: D31806396 fbshipit-source-id: 870308990c4c0c71453d107628b8adcb9edcf391
-
- 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
-
- 13 May, 2021 1 commit
-
-
Kai Zhang authored
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/62 Lightning trainer set max step to cfg.SOLVER.MAX_ITER. However, this is the max iteration for all nodes, in multi-node training, we need to scale it down, as well as eval period and other configs. This diff calls `auto_scale_world_size` before passing the config to trainer. Reviewed By: wat3rBro Differential Revision: D28140877 fbshipit-source-id: 2639ae58773a4ec2a0cc59dfefb2f5d9b1afe1a8
-
- 05 Mar, 2021 1 commit
-
-
Peizhao Zhang authored
Summary: migrated to iopath for d2go - data. Reviewed By: sstsai-adl Differential Revision: D26632143 fbshipit-source-id: d85e4a00817115a8762e4444406d867070d4fd0c
-
- 03 Mar, 2021 1 commit
-
-
facebook-github-bot authored
fbshipit-source-id: f4a8ba78691d8cf46e003ef0bd2e95f170932778
-