1. 20 May, 2019 2 commits
  2. 17 May, 2019 2 commits
  3. 05 Apr, 2019 1 commit
  4. 01 Apr, 2019 2 commits
  5. 30 Mar, 2019 1 commit
    • Sean Bell's avatar
      Add exp_decay learning rate policy · e2aef3a7
      Sean Bell authored
      Summary:
      This adds an exponential learning rate schedule, parameterized by `GAMMA` which specifies the ratio between the final and initial learning rate.  This is a more natural parameterization than `A ^ t` or `exp(A * t)`.
      
      Since most jobs drop by ~3 orders of magnitude throughout training, typically `GAMMA = 1e-3` should work for many scenarios.
      
      Reviewed By: ashwinb, rbgirshick
      
      Differential Revision: D14654419
      
      fbshipit-source-id: 8dabbc8df28d32e4fd748b61bc32efaf3935d244
      e2aef3a7
  6. 29 Mar, 2019 1 commit
  7. 20 Mar, 2019 1 commit
    • Sean Bell's avatar
      Fix possible race condition in model saving. · b62314c6
      Sean Bell authored
      Summary:
      When saving models, it can appear as available for loading before saving has finished.  This can cause race conditions, particularly on network file systems.
      
      This changes saving code to write to a temporary filename in the same directory and then atomically rename to the target filename.  This is a common technique that relies on the atomicity of `os.rename`.
      
      Reviewed By: ashwinb, samialsheikh
      
      Differential Revision: D14495989
      
      fbshipit-source-id: 2e44dd8e747331b319ef46132ddeff604618a5dd
      b62314c6
  8. 20 Feb, 2019 1 commit
    • Ashwin Bharambe's avatar
      Filter proposals not present in roidb · 8a472383
      Ashwin Bharambe authored
      Summary:
      It is convenient to run with a set of precomputed proposals for a
      larger set (e.g., coco_trainval2014) and then do experiments using annotations
      for a smaller subset of the data.
      
      It is possible to do this filtering only if a config flag is set, but it seems
      harmless enough to do it always.
      
      Reviewed By: rbgirshick
      
      Differential Revision: D14106953
      
      fbshipit-source-id: f726425ee5b6b22fcb711e3ec479b302ea09e837
      8a472383
  9. 27 Dec, 2018 2 commits
  10. 08 Nov, 2018 1 commit
    • Jerry Zhang's avatar
      Rename ndim() -> dim() · 8181a324
      Jerry Zhang authored
      Summary:
      Codemod generated with clangr shard mode, 50 files per diff,
      clangr code(ndim()->dim()): diffusion/FBS/browse/master/fbcode/caffe2/caffe2/fb/codemods/TensorMethodRename.cpp
      
      Reviewed By: ezyang
      
      Differential Revision: D12935918
      
      fbshipit-source-id: 4ce24a3debcd471b3649fa71f890f7b24bb8678a
      8181a324
  11. 04 Nov, 2018 1 commit
  12. 30 Oct, 2018 2 commits
    • Jerry Zhang's avatar
      Renaming size() to numel() · c003e5af
      Jerry Zhang authored
      Summary:
      Codemod generated with clangr shard mode, 50 files per diff,
      clangr code(size->numel): diffusion/FBS/browse/master/fbcode/caffe2/caffe2/fb/codemods/TensorMethodRename.cpp
      
      Reviewed By: ezyang
      
      Differential Revision: D12833487
      
      fbshipit-source-id: 5dec5a64f91912620f3a5e48a2cc571be675c5fd
      c003e5af
    • Ilija Radosavovic's avatar
      Make yaml load/dump functions specific to the environment · ffb87f4c
      Ilija Radosavovic authored
      Reviewed By: ashwinb
      
      Differential Revision: D10496498
      
      fbshipit-source-id: eb12fe573ec3270172e27c2fdb39a70fc92d8d99
      ffb87f4c
  13. 23 Oct, 2018 1 commit
  14. 19 Oct, 2018 2 commits
  15. 18 Oct, 2018 1 commit
  16. 10 Oct, 2018 1 commit
  17. 06 Oct, 2018 3 commits
  18. 02 Oct, 2018 8 commits
    • Junjie Bai's avatar
      Back out "Revert D10123245: Back out "codemod cuda_gpu_id to device_id"" (#12232) · 96147dec
      Junjie Bai authored
      Summary:
      Pull Request resolved: https://github.com/pytorch/pytorch/pull/12232
      
      Original commit changeset: fca91fea58b7
      
      This adds proper modifications to the DeviceType <->DeviceOption conversion code added in D10033396
      
      Reviewed By: jerryzh168
      
      Differential Revision: D10132473
      
      fbshipit-source-id: 801ef777e2950982cb47b48051b1471a0a91e64b
      96147dec
    • Ilija Radosavovic's avatar
      Provide options for specifying vis thresholds for the demo tool · 1afde377
      Ilija Radosavovic authored
      Reviewed By: rbgirshick
      
      Differential Revision: D10131443
      
      fbshipit-source-id: ee6df3147b94711eecbe558bcaf30d021976b593
      1afde377
    • Rick Ratmansky's avatar
      Revert D10123245: Back out "codemod cuda_gpu_id to device_id" · f7d394ce
      Rick Ratmansky authored
      Differential Revision:
      D10123245
      
      Original commit changeset: d83da8e00a12
      
      fbshipit-source-id: fca91fea58b7df208edc2e218a1d514f9821ec7b
      f7d394ce
    • Ashwin Bharambe's avatar
      Enable python3 builds · cbb0236d
      Ashwin Bharambe authored
      Reviewed By: rbgirshick
      
      Differential Revision: D9691247
      
      fbshipit-source-id: 7a9c1a33698be6907dede589965f8f4f4d337f93
      cbb0236d
    • Ashwin Bharambe's avatar
      Prepare for Python3 compatibility [3] · 4dc5e92e
      Ashwin Bharambe authored
      Summary:
      A couple small issues pointed out by Ross.
      
       - Treating bytes as strings with a subprocess' output :/
       - Controling precision of logged floats using a workaround instead of
         FLOAT_REPR which doesn't work with newer versions of Python3.
      
      Reviewed By: rbgirshick
      
      Differential Revision: D9724292
      
      fbshipit-source-id: a6aa1730f25df5d165291dc30b9350a9fff6fca6
      4dc5e92e
    • Ashwin Bharambe's avatar
      Prepare for python3 compatibility [2] · 9185b699
      Ashwin Bharambe authored
      Summary:
      There were two "bugs" associated with loading pickle files:
      
      The first is easy: these files should have been `open()`ed as binary, but
      weren't.
      
      The second is slightly nuanced. The default encoding used wwhile unpickling
      is 7-bit (ASCII.) However, the blobs are arbitrary 8-bit bytes which don't
      agree. The absolute correct way to do this is to use `encoding="bytes"` and
      then interpret the blob names either as ASCII, or better, as unicode utf-8. A
      reasonable fix, however, is to treat it the encoding as 8-bit latin1 (which
      agrees with the first 256 characters of Unicode anyway.)
      
      As part of this, I also centralized all pickling operations into
      `detectron.utils.io`.
      
      This /still/ does not change the build to Python3, but I believe it is ready
      now.
      
      Reviewed By: rbgirshick
      
      Differential Revision: D9689294
      
      fbshipit-source-id: add1f2d784fe196df27b20e65e35922536d11a3c
      9185b699
    • Ashwin Bharambe's avatar
      Prepare for python3 compatibility [1] · 88dd4b1d
      Ashwin Bharambe authored
      Summary:
      This is a first step towards python3 compatibility. Specifically, it
      tackles:
      
       - `cPickle`: uses six.moves
       - `Queue`: uses six.moves
       - `urllib2`: uses six.moves and changes `urllib2.urlopen` to `urllib.request.urlopen`
      
      Also, fundamentally it changes the types of all config "byte" types to
      "string" types. Those configurations aren't un-encoded byte streams but very
      specifically ascii (or unicode encoded) strings which are specified and
      consumed by human eyes.
      
      Reviewed By: rbgirshick
      
      Differential Revision: D9662024
      
      fbshipit-source-id: b8372f685b57ec4260ae881a2f8bb7967f337b10
      88dd4b1d
    • Yang Liu's avatar
      Back out "codemod cuda_gpu_id to device_id" · fd09e37a
      Yang Liu authored
      Summary:
      Original commit changeset: f5614a5d2607
      
      D9986213 is causing Multifeed Aggregator a [huge performance different](https://our.intern.facebook.com/intern/ads/analyze_canary/412951953278781781/) and is blocking aggregator push since last Friday night: https://fburl.com/feedtools/b6izvwjz
      We need to land this revert ASAP to unblock aggregator push.
      
      Reviewed By: orionr
      
      Differential Revision: D10123245
      
      fbshipit-source-id: d83da8e00a1250f5d09811a0a587c127e377aab2
      fd09e37a
  19. 28 Sep, 2018 1 commit
  20. 26 Sep, 2018 2 commits
  21. 22 Sep, 2018 1 commit
    • Ashwin Bharambe's avatar
      Allow overriding "regresion weights" used in GenerateProposalsOp · e8942c88
      Ashwin Bharambe authored
      Summary:
      Detectron code is inconsistent about when it uses (1, 1, 1, 1) as the
      regression weights vs. `cfg.MODEL.BBOX_REG_WEIGHTS` (which has a default
      value of (10, 10, 5, 5)). This change allows the caller to make the call
      (heh!) about what to use.
      
      Reviewed By: rbgirshick
      
      Differential Revision: D9981875
      
      fbshipit-source-id: 8798408bd2592486eb1a2e40ccb70b9bedfdbf46
      e8942c88
  22. 19 Sep, 2018 1 commit
  23. 15 Sep, 2018 1 commit
  24. 06 Sep, 2018 1 commit
    • Ashwin Bharambe's avatar
      Fix a bug in RPN proposal label generation · 3a38b7bc
      Ashwin Bharambe authored
      Summary:
      Negative labels were never set if `len(bg_inds) <= num_bg`. This
      condition happens when there aren't as many negative anchor samples compared to the
      typical batch size (256). Since detection scales are typically ~800, there are
      plenty of negative samples and this bug is likely never hit. In any case, it
      is certainly a bug which should be fixed!
      
      Reviewed By: rbgirshick
      
      Differential Revision: D9647703
      
      fbshipit-source-id: fada9f4f2e0a0b5c1619940328c505e73f9a1c7e
      3a38b7bc