idealwei / superpixelpool.pytorch Goto Github PK
View Code? Open in Web Editor NEWsuperpixel average pooling, superspixel max pooling, pytorch implementations
superpixel average pooling, superspixel max pooling, pytorch implementations
I just install your code by 'python setup.py install'
And it has a folder in python site-packages named 'suppixpool_CUDA-0.0.0-py3.6-linux-x86_64.egg'
But I could not import it by 'import suppixpool_CUDA as spx_gpu'
Could you tell me why?
Thank you~
Hi, Thanks for sharing your code. I have a problem when running:
python_ setup.py install
The error shows:
suppixpool_cuda.cpp:38:44: error: could not convert ‘torch::CUDA((c10::ScalarType)3)’ from ‘at::TypeExtendedInterface’ to ‘c10::IntList {aka c10::ArrayRef}’
at::Tensor output = at::zeros(torch::CUDA(at::kInt), {batch_size, channe
^
suppixpool_cuda.cpp:41:73: error: could not convert ‘c10::kInt’ from ‘const c10::ScalarType’ to ‘c10::IntList {aka c10::ArrayRef}’
at::Tensor outIdx = -at::ones(at::kInt, {batch_size, channels_size, K});
^
error: command 'gcc' failed with exit status 1
I have upgraded my Pytorch from 0.4.0 to 1.0.0 and my gcc version is "gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609". But the error still appears. I am wondering whether it is due to the version of dependency? What ahout your settings? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.