1. 24 Mar, 2021 3 commits
    • Kai Zhang's avatar
      Support evaluate predictor · 6aec097e
      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
      6aec097e
    • Kai Zhang's avatar
      Support export_predictors · 242b2d37
      Kai Zhang authored
      Summary: As titled.
      
      Reviewed By: newstzpz
      
      Differential Revision: D27074737
      
      fbshipit-source-id: 72f2535fc730a37f5ea8f58aaff88005c28ffc5b
      242b2d37
    • Kai Zhang's avatar
      Simplify Lightning task and model creation · 9051f71a
      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
      9051f71a
  2. 21 Mar, 2021 1 commit
    • Tao Xu's avatar
      register new dataset for GANs on the fly · 498cd31b
      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
      498cd31b
  3. 20 Mar, 2021 1 commit
    • Yanghan Wang's avatar
      move test utils to core library · 9d238344
      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
      9d238344
  4. 18 Mar, 2021 2 commits
  5. 17 Mar, 2021 2 commits
  6. 16 Mar, 2021 3 commits
    • Sam Tsai's avatar
      extend cocotext conversion · b80f2ff5
      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
      b80f2ff5
    • Xiaoliang Dai's avatar
      add more layers to the subclass head · d5c214b9
      Xiaoliang Dai authored
      Reviewed By: sanjeevk42
      
      Differential Revision: D26922320
      
      fbshipit-source-id: 8d6b4bc709d931020483284febede8cf8904d90f
      d5c214b9
    • Georgy Marrero's avatar
      Add d2go data registry support for v2 mask paths · 1c35e46c
      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
      1c35e46c
  7. 12 Mar, 2021 1 commit
  8. 11 Mar, 2021 1 commit
  9. 10 Mar, 2021 3 commits
    • TannerGilbert's avatar
      updated broken url · 8407e5f2
      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
      8407e5f2
    • Peizhao Zhang's avatar
      Added model fusing for fp32 models for export. · f42221da
      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
      f42221da
    • Peizhao Zhang's avatar
      Skipped broken unit tests for exporter. · 00e8a4f0
      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
      00e8a4f0
  10. 09 Mar, 2021 1 commit
    • Yanghan Wang's avatar
      add benchmark_data binary · 66b7c7c8
      Yanghan Wang authored
      Reviewed By: newstzpz
      
      Differential Revision: D26072333
      
      fbshipit-source-id: 6727b34458d410e904045aa58f81c3e09111882a
      66b7c7c8
  11. 08 Mar, 2021 1 commit
    • Yanghan Wang's avatar
      fix missing config file in integration test · 1c027be9
      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
      1c027be9
  12. 07 Mar, 2021 1 commit
  13. 06 Mar, 2021 1 commit
  14. 05 Mar, 2021 4 commits
    • Xiaoliang Dai's avatar
      Update model_zoo · 0918c80f
      Xiaoliang Dai authored
      Summary: Update the latency number in d2go
      
      Reviewed By: newstzpz
      
      Differential Revision: D26817844
      
      fbshipit-source-id: 6a2e73956201ca58efafef0fcdef7a5f06ffea7b
      0918c80f
    • Peizhao Zhang's avatar
      migrated to iopath for d2go - rest. · 614fdd32
      Peizhao Zhang authored
      Summary: migrated to iopath for d2go - rest.
      
      Reviewed By: zhanghang1989
      
      Differential Revision: D26632160
      
      fbshipit-source-id: 182fcd9ad493a483ab7f342f373a7be2de7d10ca
      614fdd32
    • Peizhao Zhang's avatar
      migrated to iopath for d2go - runner. · f5ad6cf6
      Peizhao Zhang authored
      Summary: migrated to iopath for d2go - runner.
      
      Reviewed By: zhanghang1989
      
      Differential Revision: D26632151
      
      fbshipit-source-id: ff240967cf9f7ab8a68caee240ba56edaf507a02
      f5ad6cf6
    • Peizhao Zhang's avatar
      migrated to iopath for d2go - data. · e96e287b
      Peizhao Zhang authored
      Summary: migrated to iopath for d2go - data.
      
      Reviewed By: sstsai-adl
      
      Differential Revision: D26632143
      
      fbshipit-source-id: d85e4a00817115a8762e4444406d867070d4fd0c
      e96e287b
  15. 04 Mar, 2021 4 commits
    • RangiLyu's avatar
      Typo fixes · 5bf4cc7d
      RangiLyu authored
      Summary:
      Change depoyment to deployment in README.md.
      Change datasest to datasets in tools/exporter.py.
      
      Pull Request resolved: https://github.com/facebookresearch/d2go/pull/7
      
      Reviewed By: newstzpz
      
      Differential Revision: D26821039
      
      Pulled By: zhanghang1989
      
      fbshipit-source-id: 5056d15c877c4b3d771d33267139e73f1527da21
      5bf4cc7d
    • Zhiqiang Wang's avatar
      Fix typo in demo/README.md · a8aaa5b1
      Zhiqiang Wang authored
      Summary:
      Hi,
      
      This PR changes `mdoel_zoo` to `model_zoo` in demo/README.md.
      
      Pull Request resolved: https://github.com/facebookresearch/d2go/pull/6
      
      Reviewed By: newstzpz
      
      Differential Revision: D26821013
      
      Pulled By: zhanghang1989
      
      fbshipit-source-id: d7512d350daba57a8437bc269adbbf18e95a2d4c
      a8aaa5b1
    • Owen Wang's avatar
      use ema weights when exporting models · f45574f2
      Owen Wang authored
      Summary:
      Use EMA weights when exporting the model. Many previous FBNetV3_B* + EMA training runs didn't have this config flag set, so setting it here during export when the model is built.
      
      If a model uses EMA (MODEL_EMA.ENABLED = True), then this flag will take effect and use EMA weights. Otherwise, this flag has no effect on the export.
      
      Yanghan may be adding `torchscript_mobile` export type, deprecating this script, soon.
      
      Reviewed By: vivekn, sanjeevk42
      
      Differential Revision: D26412081
      
      fbshipit-source-id: 98f5402279ab02157e5e3dbefd41840a5e230d94
      f45574f2
    • Hang Zhang's avatar
      Add Demo and Quick Start Instructions · 82a8e0a0
      Hang Zhang authored
      Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/5
      
      Reviewed By: wat3rBro
      
      Differential Revision: D26780956
      
      Pulled By: zhanghang1989
      
      fbshipit-source-id: 26af80bbdf6bcb6af4a8b5d27e655826b34db26a
      82a8e0a0
  16. 03 Mar, 2021 5 commits
    • Yuxin Wu's avatar
      clean up reference of FBTensorboardXWriter · 465cdb84
      Yuxin Wu authored
      Reviewed By: theschnitz
      
      Differential Revision: D26230057
      
      fbshipit-source-id: 57eb15b5eea27f65035b2509e920ba269f7999f1
      465cdb84
    • Rama Kovvuri's avatar
      Enable manifold based training for OCR d2go pipeline · dbc9a9f4
      Rama Kovvuri authored
      Summary: As in title.
      
      Reviewed By: SuperIRabbit
      
      Differential Revision: D25349762
      
      fbshipit-source-id: 69e21cc00a9dd5b70a479fd4383742593a62997e
      dbc9a9f4
    • Kai Zhang's avatar
      Split lightning_train_net into OSS and internal · 857195d8
      Kai Zhang authored
      Summary:
      As titled. The OSS version only use PyTorch Lightning while internal version leverages some features(e.g. Manifold integration, every_n_step checkpointing).
      This diff splits train_net.main into smaller functions so that they could be shared across OSS and internal versions.
      
      Reviewed By: zhanghang1989
      
      Differential Revision: D26752701
      
      fbshipit-source-id: 7f68e2a81e78193e117517a0ff668ab14b76ea65
      857195d8
    • Kai Zhang's avatar
      Copy quantization callback to D2go · 5d8068d8
      Kai Zhang authored
      Summary: As titled. Make a copy of quantization callback to unblock D2go OSS.
      
      Reviewed By: zhanghang1989
      
      Differential Revision: D26735525
      
      fbshipit-source-id: 12b77f04cfa1361e856b26ea218a262da1fadd88
      5d8068d8
    • facebook-github-bot's avatar
      Initial commit · f23248c0
      facebook-github-bot authored
      fbshipit-source-id: f4a8ba78691d8cf46e003ef0bd2e95f170932778
      f23248c0