Git Product home page Git Product logo

Comments (5)

csjliang avatar csjliang commented on July 23, 2024

Hi, when you run sh setup.sh, do you get the message that you have successfully installed the trilinear-0.0.0? Have you adapted the command in the setup.sh file to cuda 10.0? Thanks.

from ppr10k.

zjlinkin avatar zjlinkin commented on July 23, 2024

'run setup.sh' log info seems no problem, the whole log as below. I have revise the setup.sh as 'export CUDA_HOME=/usr/local/cuda-10.0 && python3 setup.py install'

sh setup.sh
Including CUDA code.
running install
running bdist_egg
running egg_info
creating trilinear.egg-info
writing trilinear.egg-info/PKG-INFO
writing dependency_links to trilinear.egg-info/dependency_links.txt
writing top-level names to trilinear.egg-info/top_level.txt
writing manifest file 'trilinear.egg-info/SOURCES.txt'
reading manifest file 'trilinear.egg-info/SOURCES.txt'
writing manifest file 'trilinear.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'trilinear' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/python3.6.5/lib/python3.6/site-packages/torch/include -I/usr/local/python3.6.5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/usr/local/python3.6.5/lib/python3.6/site-packages/torch/include/TH -I/usr/local/python3.6.5/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/usr/local/python3.6.5/include/python3.6m -c src/trilinear_cuda.cpp -o build/temp.linux-x86_64-3.6/src/trilinear_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=trilinear -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/usr/local/cuda-10.0/bin/nvcc -I/usr/local/python3.6.5/lib/python3.6/site-packages/torch/include -I/usr/local/python3.6.5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/usr/local/python3.6.5/lib/python3.6/site-packages/torch/include/TH -I/usr/local/python3.6.5/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/usr/local/python3.6.5/include/python3.6m -c src/trilinear_kernel.cu -o build/temp.linux-x86_64-3.6/src/trilinear_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=trilinear -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.6
g++ -pthread -shared build/temp.linux-x86_64-3.6/src/trilinear_cuda.o build/temp.linux-x86_64-3.6/src/trilinear_kernel.o -L/usr/local/cuda-10.0/lib64 -lcudart -o build/lib.linux-x86_64-3.6/trilinear.cpython-36m-x86_64-linux-gnu.so
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.6/trilinear.cpython-36m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating stub loader for trilinear.cpython-36m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/trilinear.py to trilinear.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying trilinear.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying trilinear.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying trilinear.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying trilinear.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
pycache.trilinear.cpython-36: module references file
creating dist
creating 'dist/trilinear-0.0.0-py3.6-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing trilinear-0.0.0-py3.6-linux-x86_64.egg
removing '/usr/local/python3.6.5/lib/python3.6/site-packages/trilinear-0.0.0-py3.6-linux-x86_64.egg' (and everything under it)
creating /usr/local/python3.6.5/lib/python3.6/site-packages/trilinear-0.0.0-py3.6-linux-x86_64.egg
Extracting trilinear-0.0.0-py3.6-linux-x86_64.egg to /usr/local/python3.6.5/lib/python3.6/site-packages
trilinear 0.0.0 is already the active version in easy-install.pth

Installed /usr/local/python3.6.5/lib/python3.6/site-packages/trilinear-0.0.0-py3.6-linux-x86_64.egg
Processing dependencies for trilinear==0.0.0
Finished processing dependencies for trilinear==0.0.0

from ppr10k.

csjliang avatar csjliang commented on July 23, 2024

Actually, you need import torch first and then import trilinear to import some symbols provided by PyTorch.

from ppr10k.

zjlinkin avatar zjlinkin commented on July 23, 2024

Yes. it is my mistake, thanks your reply !
by the way, I notice that you are also the author of 'High-Resolution Photorealistic Image Translation in Real-Time: A Laplacian Pyramid Translation Network', it is promising for my research, i am looking forward to learning more detail through the code

from ppr10k.

csjliang avatar csjliang commented on July 23, 2024

The codes of the LPTN paper will be released soon. Thanks!

from ppr10k.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.