-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Qinqing Liu
committed
Dec 20, 2021
1 parent
b9be5f6
commit 6bde8f6
Showing
8 changed files
with
135 additions
and
24 deletions.
There are no files selected for viewing
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,31 @@ | ||
import tensorflow as tf | ||
from network_cls import network_ocnn, network_resnet, network_cnn_grids, network_resnet_grids | ||
#from network_unet import network_unet | ||
#from network_hrnet import HRNet | ||
# from network_unet_scannet import network_unet34 | ||
|
||
def cls_network(octree, flags, training, reuse=False): | ||
if flags.name.lower() == 'vgg': | ||
if flags.name.lower() == 'ocnn': | ||
return network_ocnn(octree, flags, training, reuse) | ||
elif flags.name.lower() == 'resnet': | ||
return network_resnet(octree, flags, training, reuse) | ||
elif flags.name.lower() == 'hrnet': | ||
return HRNet(flags).network_cls(octree, training, reuse) | ||
elif flags.name.lower() == 'cnn_grids': | ||
return network_cnn_grids(octree, flags, training, reuse) | ||
elif flags.name.lower() == 'resnet_grids': | ||
return network_resnet_grids(octree, flags, training, reuse) | ||
else: | ||
print('Error, no network: ' + flags.name) | ||
|
||
def seg_network(octree, flags, training, reuse=False, pts=None, mask=None): | ||
if flags.name.lower() == 'unet': | ||
return network_unet(octree, flags, training, reuse) | ||
elif flags.name.lower() == 'hrnet': | ||
return HRNet(flags).network_seg(octree, training, reuse, pts, mask) | ||
# elif flags.name.lower() == 'unet_scannet': | ||
# return network_unet34(octree, flags, training, reuse, pts, mask) | ||
else: | ||
print('Error, no network: ' + flags.name) | ||
|
||
|
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