yeezhu / SPN.pytorch

PyTorch implementation of "Soft Proposal Networks for Weakly Supervised Object Localization", ICCV 2017.
http://yzhu.work/spn.html
MIT License
211 stars 37 forks source link

bash make.sh wrong #32

Open ltc576935585 opened 4 years ago

ltc576935585 commented 4 years ago

(py3.5) ltc@ltcpc:~/PycharmProjects/SPN.pytorch-master/spnlib$ python setup.py Including CUDA code. usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

error: no commands supplied (py3.5) ltc@ltcpc:~/PycharmProjects/SPN.pytorch-master/spnlib$ python setup.py --help Including CUDA code. Common commands: (see '--help-commands' for more)

setup.py build will build the package underneath 'build/' setup.py install will install the package

Global options: --verbose (-v) run verbosely (default) --quiet (-q) run quietly (turns verbosity off) --dry-run (-n) don't actually do anything --help (-h) show detailed help message --no-user-cfg ignore pydistutils.cfg in your home directory --command-packages list of packages that provide distutils commands

Information display options (just display information, ignore any commands) --help-commands list all available commands --name print package name --version (-V) print package version --fullname print - --author print the author's name --author-email print the author's email address --maintainer print the maintainer's name --maintainer-email print the maintainer's email address --contact print the maintainer's name if known, else the author's --contact-email print the maintainer's email address if known, else the author's --url print the URL for this package --license print the license of the package --licence alias for --license --description print the package description --long-description print the long package description --platforms print the list of platforms --classifiers print the list of classifiers --keywords print the list of keywords --provides print the list of packages/modules provided --requires print the list of packages/modules required --obsoletes print the list of packages/modules made obsolete

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

(py3.5) ltc@ltcpc:~/PycharmProjects/SPN.pytorch-master/spnlib$ python setup.py clean Including CUDA code. running clean removing 'build/temp.linux-x86_64-3.5' (and everything under it) (py3.5) ltc@ltcpc:~/PycharmProjects/SPN.pytorch-master/spnlib$ python setup.py install Including CUDA code. running install running bdist_egg running egg_info writing spn.egg-info/PKG-INFO writing dependency_links to spn.egg-info/dependency_links.txt writing top-level names to spn.egg-info/top_level.txt writing requirements to spn.egg-info/requires.txt reading manifest file 'spn.egg-info/SOURCES.txt' writing manifest file 'spn.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py copying spn/_ext/libspn/init.py -> build/lib.linux-x86_64-3.5/spn/_ext/libspn running build_ext generating cffi module 'build/temp.linux-x86_64-3.5/spn._ext.libspn._libspn.c' creating build/temp.linux-x86_64-3.5 building 'spn._ext.libspn._libspn' extension creating build/temp.linux-x86_64-3.5/build creating build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/home creating build/temp.linux-x86_64-3.5/home/ltc creating build/temp.linux-x86_64-3.5/home/ltc/PycharmProjects creating build/temp.linux-x86_64-3.5/home/ltc/PycharmProjects/SPN.pytorch-master creating build/temp.linux-x86_64-3.5/home/ltc/PycharmProjects/SPN.pytorch-master/spnlib creating build/temp.linux-x86_64-3.5/home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn creating build/temp.linux-x86_64-3.5/home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src gcc -pthread -B /home/ltc/anaconda3/envs/py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include -I/home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -Ispn/src -I/home/ltc/anaconda3/envs/py3.5/include/python3.5m -c build/temp.linux-x86_64-3.5/spn._ext.libspn._libspn.c -o build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5/spn._ext.libspn._libspn.o -std=c99 -fopenmp gcc -pthread -B /home/ltc/anaconda3/envs/py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include -I/home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -Ispn/src -I/home/ltc/anaconda3/envs/py3.5/include/python3.5m -c /home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn.c -o build/temp.linux-x86_64-3.5/home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn.o -std=c99 -fopenmp gcc -pthread -B /home/ltc/anaconda3/envs/py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include -I/home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -Ispn/src -I/home/ltc/anaconda3/envs/py3.5/include/python3.5m -c /home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn_cuda.c -o build/temp.linux-x86_64-3.5/home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn_cuda.o -std=c99 -fopenmp In file included from generic/SoftProposalGenerator.cu:1:0, from /home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn_cuda.c:14: spn/src/generic/SoftProposalGenerator.cu: In function ‘cuspn_Float_SP_Generate’: spn/src/generic/SoftProposalGenerator.cu:39:23: error: dereferencing pointer to incomplete type ‘THTensor {aka struct THTensor}’ uint8 ndim = input->nDimension; ^ In file included from generic/SoftProposalGenerator.cu:1:0, from /home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn_cuda.c:17: spn/src/generic/SoftProposalGenerator.cu: In function ‘cuspn_Double_SP_Generate’: spn/src/generic/SoftProposalGenerator.cu:106:17: warning: passing argument 6 of ‘THCudaBlas_Sgemv’ from incompatible pointer type [-Wincompatible-pointer-types] transferMatrix_data, ^ In file included from /home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:6:0, from /home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn_cuda.c:1: /home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCBlas.h:15:14: note: expected ‘float ’ but argument is of type ‘double ’ THC_API void THCudaBlas_Sgemv(THCState state, char trans, int64_t m, int64_t n, float alpha, float a, int64_t lda, float x, int64_t incx, float beta, ^ In file included from generic/SoftProposalGenerator.cu:1:0, from /home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn_cuda.c:17: spn/src/generic/SoftProposalGenerator.cu:108:17: warning: passing argument 8 of ‘THCudaBlas_Sgemv’ from incompatible pointer type [-Wincompatible-pointer-types] proposal_data, ^ In file included from /home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:6:0, from /home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn_cuda.c:1: /home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCBlas.h:15:14: note: expected ‘float ’ but argument is of type ‘double ’ THC_API void THCudaBlas_Sgemv(THCState state, char trans, int64_t m, int64_t n, float alpha, float a, int64_t lda, float x, int64_t incx, float beta, ^ In file included from generic/SoftProposalGenerator.cu:1:0, from /home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn_cuda.c:17: spn/src/generic/SoftProposalGenerator.cu:111:17: warning: passing argument 11 of ‘THCudaBlas_Sgemv’ from incompatible pointer type [-Wincompatible-pointer-types] proposalBuffer_data, ^ In file included from /home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:6:0, from /home/ltc/PycharmProjects/SPN.pytorch-master/spnlib/spn/src/libspn_cuda.c:1: /home/ltc/anaconda3/envs/py3.5/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCBlas.h:15:14: note: expected ‘float ’ but argument is of type ‘double ’ THC_API void THCudaBlas_Sgemv(THCState state, char trans, int64_t m, int64_t n, float alpha, float a, int64_t lda, float *x, int64_t incx, float beta, ^ error: command 'gcc' failed with exit status 1

akshatha-k commented 4 years ago

I get the above error as well. Any suggestions please?

somahota commented 4 years ago

I am curious why hasn't this been solved yet. I am facing the same issue even now