-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from Temigo/me
Switch to MinkowskiEngine
- Loading branch information
Showing
333 changed files
with
23,330 additions
and
8,782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
""" | ||
Contains factories for CNN backbone Networks. | ||
""" | ||
|
||
def cnn_dict(): | ||
import MinkowskiEngine as ME | ||
from mlreco.models.mink import layers | ||
cnns = { | ||
'uresnet': layers.uresnet.UResNet, | ||
# 'fpn': layers.fpn.FPN, | ||
# 'uresnext': layers.uresnext.UResNext, | ||
# 'mobilenet': layers.mobilenet.MobileNetV3, | ||
'uresnet_encoder': layers.uresnet.UResNetEncoder, | ||
'uresnet_decoder': layers.uresnet.UResNetDecoder | ||
} | ||
return cnns | ||
|
||
def cnn_construct(name, cfg): | ||
cnn_list = cnn_dict() | ||
if name not in cnn_list: | ||
raise Exception("Unknown CNN architecture name provided") | ||
return cnn_list[name](cfg) | ||
|
||
def chain_dict(): | ||
import MinkowskiEngine as ME | ||
from . import full_chain | ||
cnns = { | ||
'chain1': full_chain.FullChainCNN1, | ||
'chain2': full_chain.FullChainCNN2 | ||
} | ||
return cnns | ||
|
||
def chain_construct(name, cfg): | ||
chain_list = chain_dict() | ||
if name not in chain_list: | ||
raise Exception("Unknown full chain model name provided") | ||
return chain_list[name](cfg) |
Oops, something went wrong.