GSCNN
GSCNN copied to clipboard
ModuleNotFoundError: No module named 'encoding'
When I run 'python train.py --evaluate --snapshot checkpoints/best_cityscapes_checkpoint.pth', the bug occurs as:
Traceback (most recent call last):
File "train.py", line 381, in
Then I try to install 'encoding' or search the module 'encoding' in google, but I found nothing. Why does this bug occur? And, how can I settle this problem?
May help you # import encoding __C.MODEL.BN = 'syncnorm' __C.MODEL.BNFUNC = torch.nn.BatchNorm2d # __C.MODEL.BNFUNC = encoding.nn.BatchNorm2d I know this in a website: https://zhuanlan.zhihu.com/p/428556534
Mabe you can try install "torch-encoding". I use that saving.