Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Unknown activation function none #66

Open
mayanktiwariiiitdmj opened this issue Dec 14, 2021 · 0 comments
Open

ValueError: Unknown activation function none #66

mayanktiwariiiitdmj opened this issue Dec 14, 2021 · 0 comments

Comments

@mayanktiwariiiitdmj
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant