GoGoDuck912 / Self-Correction-Human-Parsing

An out-of-box human parsing representation extractor.
MIT License
1.05k stars 236 forks source link

ValueError: Unknown activation function none #66

Open mayanktiwariiiitdmj opened 2 years ago

mayanktiwariiiitdmj commented 2 years ago

When I am running the project using the following command:

python simple_extractor.py --dataset 'pascal' --model-restore 'checkpoints/exp-schp-201908270938-pascal-person-part.pth' --input-dir 'inputs' --output-dir 'outputs'

Then I am getting the following error:

0%|                                                                                                                            | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "simple_extractor.py", line 156, in <module>
    main()
  File "simple_extractor.py", line 137, in main
    output = model(image.cuda())
  File "/home/mayank/anaconda3/envs/init_selfcorrectionhumanparsing_031221/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/mayank/SkinToneChangeProject/init_selfcorrectionhumanparsing_031221/networks/AugmentCE2P.py", line 299, in forward
    x = self.relu1(self.bn1(self.conv1(x)))
  File "/home/mayank/anaconda3/envs/init_selfcorrectionhumanparsing_031221/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/mayank/anaconda3/envs/init_selfcorrectionhumanparsing_031221/lib/python3.7/site-packages/inplace_abn/abn.py", line 323, in forward
    self.group,
  File "/home/mayank/anaconda3/envs/init_selfcorrectionhumanparsing_031221/lib/python3.7/site-packages/inplace_abn/functions.py", line 307, in inplace_abn_sync
    group,
  File "/home/mayank/anaconda3/envs/init_selfcorrectionhumanparsing_031221/lib/python3.7/site-packages/inplace_abn/functions.py", line 83, in forward
    ctx.activation = _activation_from_name(activation)
  File "/home/mayank/anaconda3/envs/init_selfcorrectionhumanparsing_031221/lib/python3.7/site-packages/inplace_abn/functions.py", line 19, in _activation_from_name
    raise ValueError("Unknown activation function {}".format(activation))
ValueError: Unknown activation function none

Please help me in solving this.