Skip to content

Commit

Permalink
move detectron2 related .autodeps.toml to detectron2
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebookresearch#572

Reviewed By: ajinkya-deogade

Differential Revision: D46664313

fbshipit-source-id: acb1876c92c3907eb185dd144782495bda593d23
  • Loading branch information
Yanghan Wang authored and facebook-github-bot committed Jun 13, 2023
1 parent bcad53f commit a879c1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion d2go/quantization/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ def add_d2_quant_mapping(mappings):
def mock_quantization_type(quant_func):
import builtins
import functools
from unittest import mock

import detectron2.layers as d2l
import mock

type_mapping = {d2l.Linear: torch.nn.Linear}
from d2go.utils.misc import check_version
Expand Down
2 changes: 1 addition & 1 deletion d2go/utils/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import detectron2.utils.comm as comm
import torch
from detectron2.data import MetadataCatalog
from detectron2.engine import DefaultTrainer
from detectron2.engine.defaults import DefaultTrainer
from detectron2.evaluation import (
CityscapesInstanceEvaluator,
CityscapesSemSegEvaluator,
Expand Down

0 comments on commit a879c1b

Please sign in to comment.