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

/SigmoidFocalLoss_cuda.cu error #42

Closed
iridescentZ opened this issue Dec 14, 2020 · 5 comments
Closed

/SigmoidFocalLoss_cuda.cu error #42

iridescentZ opened this issue Dec 14, 2020 · 5 comments
Labels
installation Installation failed

Comments

@iridescentZ
Copy link

when I run pip install -e . , there is something error. How to solve it ?

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(132): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: expected an expression

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: a pointer to a bound function may only be used to call the function

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: type name is not allowed

/home/action_detection/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.cu(178): error: expected an expression

42 errors detected in the compilation of "/tmp/tmpxft_000017b7_00000000-6_SigmoidFocalLoss_cuda.cpp1.ii".
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1

@yelantf
Copy link
Collaborator

yelantf commented Dec 14, 2020

This issue seems to be a duplicate of issue #28 . Please try the suggestions provided in the link #28 (comment).

@z1z9b89
Copy link

z1z9b89 commented Dec 16, 2020

Mybe I can give u some help , you can try conda create -n alphaction python=3.8, Don't use python3.7.

@iridescentZ
Copy link
Author

This issue seems to be a duplicate of issue #28 . Please try the suggestions provided in the link #28 (comment).

Thank you for quick reply! It helps, I updated the pytorch to version 1.3.0, the error disappeared.
But there is a new error. when I run demo.py using the pretrained model common_15cat_res101.pth, the computer shut down as it processed to the 33th frame. I try to find the reason,but can't figure out why it coused the computer to reboot. Looking forward for your reply!
the command I used is as follow:
python demo.py --video-path Fighting033_x264.mp4 --output-path ./output.mp4 --cfg-path ~/ZSJ/action_detection/AlphAction/config_files/resnet101_8x8f_denseserial.yaml --weight-path ~/ZSJ/action_detection/AlphAction/data/models/aia_models/common_15cat_res101.pth --common-cate

@iridescentZ
Copy link
Author

Mybe I can give u some help , you can try conda create -n alphaction python=3.8, Don't use python3.7.

Thank your for suggestion. The main problem is the version pytorch 1.0.0 is not match to the code. Updating the pytorch works~

@iridescentZ
Copy link
Author

This issue seems to be a duplicate of issue #28 . Please try the suggestions provided in the link #28 (comment).

Thank you for quick reply! It helps, I updated the pytorch to version 1.3.0, the error disappeared.
But there is a new error. when I run demo.py using the pretrained model common_15cat_res101.pth, the computer shut down as it processed to the 33th frame. I try to find the reason,but can't figure out why it coused the computer to reboot. Looking forward for your reply!
the command I used is as follow:
python demo.py --video-path Fighting033_x264.mp4 --output-path ./output.mp4 --cfg-path ~/ZSJ/action_detection/AlphAction/config_files/resnet101_8x8f_denseserial.yaml --weight-path ~/ZSJ/action_detection/AlphAction/data/models/aia_models/common_15cat_res101.pth --common-cate

Computer shutting down is due to the power protection of GPU. I sovled this problem by set the limitation of GPU to 150w by using the command:
sudo nvidia-smi -pl 150

@yelantf yelantf closed this as completed Dec 28, 2020
@yelantf yelantf added the installation Installation failed label Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Installation failed
Projects
None yet
Development

No branches or pull requests

3 participants