1. 10 Jun, 2022 3 commits
  2. 09 Jun, 2022 1 commit
  3. 08 Jun, 2022 1 commit
    • Yanghan Wang's avatar
      making bootstrap more robust · 1f45cf04
      Yanghan Wang authored
      Summary:
      X-link: https://github.com/facebookresearch/mobile-vision/pull/81
      
      Pull Request resolved: https://github.com/facebookresearch/d2go/pull/283
      
      - add `MoreMagicMock`, which handles inheritance and comparison.
      - also support lazy registering mocked objects (has to be `MoreMagicMock`).
      - don't need to skip `skip files that doesn't contain ".register()" call` since we can handle most files pretty well now.
      - also mock the open
      - delay the import for `from detectron2.utils.testing import assert_instances_allclose`; for some reason python is doing magic things if you import anything starting with `assert`, so the mocked import doesn't work.
      - makes log function nicer.
      
      Reviewed By: tglik
      
      Differential Revision: D36798327
      
      fbshipit-source-id: ccda7e7583b95a24f3dde1bbe0468593dacb8663
      1f45cf04
  4. 07 Jun, 2022 1 commit
  5. 06 Jun, 2022 3 commits
  6. 05 Jun, 2022 2 commits
  7. 03 Jun, 2022 3 commits
  8. 02 Jun, 2022 2 commits
  9. 01 Jun, 2022 1 commit
  10. 31 May, 2022 1 commit
    • Yanghan Wang's avatar
      fix protobuf version issue · 3a89f35a
      Yanghan Wang authored
      Summary:
      Pull Request resolved: https://github.com/facebookresearch/d2go/pull/266
      
      CI has issue (eg. https://github.com/facebookresearch/d2go/runs/6662620169?check_suite_focus=true):
      ```
        File "/usr/share/miniconda/envs/__setup_conda/lib/python3.8/site-packages/caffe2/proto/__init__.py", line 15, in <module>
          from caffe2.proto import caffe2_pb2, metanet_pb2, torch_pb2
        File "/usr/share/miniconda/envs/__setup_conda/lib/python3.8/site-packages/caffe2/proto/caffe2_pb2.py", line 33, in <module>
          _descriptor.EnumValueDescriptor(
        File "/usr/share/miniconda/envs/__setup_conda/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 755, in __new__
          _message.Message._CheckCalledFromGeneratedFile()
      TypeError: Descriptors cannot not be created directly.
      If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
      If you cannot immediately regenerate your protos, some other possible workarounds are:
       1. Downgrade the protobuf package to 3.20.x or lower.
       2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
      
      More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
      ```
      
      It's caused by BC-breaking change of protobuf, fix the version.
      
      Reviewed By: tglik
      
      Differential Revision: D36781162
      
      fbshipit-source-id: 8f13461a44a5a8f01abdc09a1ff8f9759fe55619
      3a89f35a
  11. 28 May, 2022 1 commit
  12. 27 May, 2022 1 commit
  13. 26 May, 2022 1 commit
  14. 25 May, 2022 2 commits
  15. 23 May, 2022 2 commits
    • Miquel Jubert Hermoso's avatar
      Change reference from modeling to directly qconfig · 5f71fde2
      Miquel Jubert Hermoso authored
      Summary:
      Pull Request resolved: https://github.com/facebookresearch/d2go/pull/239
      
      *This diff is part of a stack which has the goal of "buckifying" D2 (https://github.com/facebookresearch/d2go/commit/87374efb134e539090e0b5c476809dc35bf6aedb)Go core and enabling autodeps and other tooling. The last diff in the stack introduces the TARGETS. The diffs earlier in the stack are resolving circular dependencies and other issues which prevent the buckification from occurring.*
      
      Break cyclic dependency by referring directly to the source file, instead to a different file that imports it.
      
      Reviewed By: tglik
      
      Differential Revision: D36166602
      
      fbshipit-source-id: 7deafc02a52ab978a21593184d1b3d3810dc9346
      5f71fde2
    • Miquel Jubert Hermoso's avatar
      Reformat d2go_dataset_mapper to break circular dependency · ca094a0a
      Miquel Jubert Hermoso authored
      Summary:
      Pull Request resolved: https://github.com/facebookresearch/d2go/pull/225
      
      *This diff is part of a stack which has the goal of "buckifying" D2 (https://github.com/facebookresearch/d2go/commit/87374efb134e539090e0b5c476809dc35bf6aedb)Go core and enabling autodeps and other tooling. The last diff in the stack introduces the TARGETS. The diffs earlier in the stack are resolving circular dependencies and other issues which prevent the buckification from occurring.*
      
      The overriding pattern applied in d2go_dataset_mapper, with the d2go_dataset_mapper_impl and d2go_dataset_mapper_impl_fb makes it possible that internal users get the _fb behaviour and external users the regular one, with the same import. But, this makes it necessary to put both files in the same dependency.
      
      This causes a circular dependency. In general, one reasonable assumption is that fb-only dependencies can import oss dependencies but not vice versa. In the current setup, grouping both _impl files in a buck target makes that buck target contain both fb and oss code, and depend on both. This is causing circular buck dependency issues.
      
      To fix this, while keeping the transparent import behavior, the following changes are done:
      
      1. The implementation file is moved to a directory under .fb. It will have it's own target.
      2. The non-fb version is renamed to DualInputDatasetMapper, as per Yanghan's suggestion. This simplifies the change, since it seems the fb version's behavior is not used atm.
      3. d2go_dataset_mapper is moved to have the implementation itself
      
      Reviewed By: tglik
      
      Differential Revision: D35930993
      
      fbshipit-source-id: ac57337d221df24f53e360d5dcb38ffa4164fef5
      ca094a0a
  16. 21 May, 2022 1 commit
  17. 20 May, 2022 3 commits
  18. 19 May, 2022 5 commits
  19. 18 May, 2022 1 commit
  20. 17 May, 2022 5 commits