not checking detectron2
Browse files
lazy.py
CHANGED
@@ -78,7 +78,7 @@ class LazyCall:
|
|
78 |
|
79 |
Examples:
|
80 |
::
|
81 |
-
from detectron2.config import instantiate, LazyCall
|
82 |
|
83 |
layer_cfg = LazyCall(nn.Conv2d)(in_channels=32, out_channels=32)
|
84 |
layer_cfg.out_channels = 64 # can edit it afterwards
|
|
|
78 |
|
79 |
Examples:
|
80 |
::
|
81 |
+
# prevent huggingface from checking detectron2: from detectron2.config import instantiate, LazyCall
|
82 |
|
83 |
layer_cfg = LazyCall(nn.Conv2d)(in_channels=32, out_channels=32)
|
84 |
layer_cfg.out_channels = 64 # can edit it afterwards
|