latent_3d_points代碼付現:Learning Representations and Generative Models For 3D Point Clouds

第一步:geihub下載代碼

latent_3d_points:https://github.com/optas/latent_3d_points

第二:安裝環境

Ubuntu 16.04
Python 2.7

cudnn 7

(latent_3d_points) l@l-THUNDEROBOT-PC:~/Desktop$ cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
#define CUDNN_MAJOR 7
#define CUDNN_MINOR 0
#define CUDNN_PATCHLEVEL 5
--
#define CUDNN_VERSION    (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)

#include "driver_types.h"

cuda 9

(latent_3d_points) l@l-THUNDEROBOT-PC:~/Desktop$ cat /usr/local/cuda/version.txt
CUDA Version 9.0.176

tensorflow 1.12.0

(latent_3d_points) l@l-THUNDEROBOT-PC:~/Desktop$ pip install tensorflow_gpu==1.12.0
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting tensorflow_gpu==1.12.0
  Downloading https://files.pythonhosted.org/packages/3d/21/63bf11a6bb4c1c85d52b259578bec20ef6f8894a13870f8f4f8b69635586/tensorflow_gpu-1.12.0-cp27-cp27mu-manylinux1_x86_64.whl (281.7MB)
     |████████████████████████████████| 281.7MB 257kB/s 
Requirement already satisfied: astor>=0.6.0 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (0.8.0)
Requirement already satisfied: enum34>=1.1.6 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (1.1.6)
Requirement already satisfied: protobuf>=3.6.1 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (3.9.2)
Requirement already satisfied: keras-preprocessing>=1.0.5 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (1.1.0)
Requirement already satisfied: gast>=0.2.0 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (0.3.2)
Requirement already satisfied: six>=1.10.0 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (1.12.0)
Requirement already satisfied: wheel in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (0.33.6)
Requirement already satisfied: absl-py>=0.1.6 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (0.8.0)
Requirement already satisfied: backports.weakref>=1.0rc1 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (1.0.post1)
Requirement already satisfied: termcolor>=1.1.0 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (1.1.0)
Collecting tensorboard<1.13.0,>=1.12.0 (from tensorflow_gpu==1.12.0)
  Downloading https://files.pythonhosted.org/packages/51/ae/9840c4837c6f54034ac942b5344396e8c3d74686a9bd29beafdf633cc221/tensorboard-1.12.2-py2-none-any.whl (3.0MB)
     |████████████████████████████████| 3.1MB 2.1MB/s 
Requirement already satisfied: numpy>=1.13.3 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (1.16.5)
Requirement already satisfied: grpcio>=1.8.6 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (1.24.0)
Requirement already satisfied: mock>=2.0.0 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (3.0.5)
Requirement already satisfied: keras-applications>=1.0.6 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow_gpu==1.12.0) (1.0.8)
Requirement already satisfied: setuptools in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from protobuf>=3.6.1->tensorflow_gpu==1.12.0) (41.2.0)
Requirement already satisfied: werkzeug>=0.11.10 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow_gpu==1.12.0) (0.16.0)
Requirement already satisfied: futures>=3.1.1; python_version < "3" in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow_gpu==1.12.0) (3.3.0)
Requirement already satisfied: markdown>=2.6.8 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow_gpu==1.12.0) (3.1.1)
Requirement already satisfied: funcsigs>=1; python_version < "3.3" in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from mock>=2.0.0->tensorflow_gpu==1.12.0) (1.0.2)
Requirement already satisfied: h5py in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from keras-applications>=1.0.6->tensorflow_gpu==1.12.0) (2.10.0)
Installing collected packages: tensorboard, tensorflow-gpu
  Found existing installation: tensorboard 1.13.1
    Uninstalling tensorboard-1.13.1:
      Successfully uninstalled tensorboard-1.13.1
Successfully installed tensorboard-1.12.2 tensorflow-gpu-1.12.0


(latent_3d_points) l@l-THUNDEROBOT-PC:~/Desktop$ python
Python 2.7.12 (default, Aug 22 2019, 16:36:40) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
tf.estimator package not installed.
tf.estimator package not installed.
>>> import tensorflow as tf
>>> tf.Variable(0)
<tf.Variable 'Variable:0' shape=() dtype=int32_ref>
>>> 
[4]+  Stopped                 python

第三部:按照官網給出進行 nake

cd latent_3d_points/external
with your editor modify the first three lines of the makefile to point to
your nvcc, cudalib and tensorflow library.
make

修改後:
nvcc = /usr/local/cuda-9.0/bin/nvcc
cudalib =  /usr/local/cuda-9.0/lib64
tensorflow = /home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include

運行

(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/external/structural_losses$ make
make: Circular tf_approxmatch_g.cu <- tf_approxmatch_g.cu.o dependency dropped.
/usr/local/cuda-9.0/bin/nvcc -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -c -o tf_approxmatch_g.cu.o tf_approxmatch_g.cu -I /home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -O2
g++ -std=c++11 tf_approxmatch.cpp tf_approxmatch_g.cu.o -o tf_approxmatch_so.so -shared -fPIC -I /home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include -lcudart -L /usr/local/cuda-9.0/lib64 -O2 -D_GLIBCXX_USE_CXX11_ABI=0
make: Circular tf_nndistance_g.cu <- tf_nndistance_g.cu.o dependency dropped.
/usr/local/cuda-9.0/bin/nvcc -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -c -o tf_nndistance_g.cu.o tf_nndistance_g.cu -I /home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -O2
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1255): warning: calling a constexpr __host__ function("real") from a __host__ __device__ function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1255): warning: calling a constexpr __host__ function("imag") from a __host__ __device__ function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1255): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1255): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1260): warning: calling a constexpr __host__ function("real") from a __host__ __device__ function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1260): warning: calling a constexpr __host__ function("imag") from a __host__ __device__ function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1260): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1260): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1285): warning: calling a constexpr __host__ function("real") from a __host__ __device__ function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1286): warning: calling a constexpr __host__ function("imag") from a __host__ __device__ function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1287): warning: calling a constexpr __host__ function("imag") from a __host__ __device__ function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1285): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1286): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1287): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1288): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1293): warning: calling a constexpr __host__ function("real") from a __host__ __device__ function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1294): warning: calling a constexpr __host__ function("imag") from a __host__ __device__ function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1295): warning: calling a constexpr __host__ function("imag") from a __host__ __device__ function("exp") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1293): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1294): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1295): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1296): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(133): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(138): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(208): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h(213): warning: calling a constexpr __host__ function from a __host__ __device__ function is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::VALUE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::VALUE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::VALUE]" 
(2096): here
            instantiation of "Eigen::internal::igamma_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(34): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::VALUE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::VALUE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::VALUE]" 
(2096): here
            instantiation of "Eigen::internal::igamma_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(34): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::DERIVATIVE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::DERIVATIVE]" 
(2102): here
            instantiation of "Eigen::internal::igamma_der_a_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma_der_a(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(38): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::DERIVATIVE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::DERIVATIVE]" 
(2102): here
            instantiation of "Eigen::internal::igamma_der_a_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma_der_a(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(38): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(2108): here
            instantiation of "Eigen::internal::gamma_sample_der_alpha_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::gamma_sample_der_alpha(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(42): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=float, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(2108): here
            instantiation of "Eigen::internal::gamma_sample_der_alpha_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::gamma_sample_der_alpha(const Scalar &, const Scalar &) [with Scalar=float]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsHalf.h(42): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::VALUE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::VALUE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::VALUE]" 
(2096): here
            instantiation of "Eigen::internal::igamma_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(120): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::VALUE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::VALUE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::VALUE]" 
(2096): here
            instantiation of "Eigen::internal::igamma_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(120): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::DERIVATIVE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::DERIVATIVE]" 
(2102): here
            instantiation of "Eigen::internal::igamma_der_a_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma_der_a(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(135): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::DERIVATIVE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::DERIVATIVE]" 
(2102): here
            instantiation of "Eigen::internal::igamma_der_a_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::igamma_der_a(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(135): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(651): warning: missing return statement at end of non-void function "Eigen::internal::igammac_cf_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igammac_cf_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(855): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(2108): here
            instantiation of "Eigen::internal::gamma_sample_der_alpha_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::gamma_sample_der_alpha(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(154): here

/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/SpecialFunctionsImpl.h(712): warning: missing return statement at end of non-void function "Eigen::internal::igamma_series_impl<Scalar, mode>::run [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]"
          detected during:
            instantiation of "Scalar Eigen::internal::igamma_series_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(863): here
            instantiation of "Scalar Eigen::internal::igamma_generic_impl<Scalar, mode>::run(Scalar, Scalar) [with Scalar=double, mode=Eigen::internal::SAMPLE_DERIVATIVE]" 
(2108): here
            instantiation of "Eigen::internal::gamma_sample_der_alpha_retval<Eigen::internal::global_math_functions_filtering_base<Scalar, void>::type>::type Eigen::numext::gamma_sample_der_alpha(const Scalar &, const Scalar &) [with Scalar=double]" 
/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../src/SpecialFunctions/arch/CUDA/CudaSpecialFunctions.h(154): here

g++ -std=c++11 tf_nndistance.cpp tf_nndistance_g.cu.o -o tf_nndistance_so.so -shared -fPIC -I /home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/include -lcudart -L /usr/local/cuda-9.0/lib64 -O2 -D_GLIBCXX_USE_CXX11_ABI=0
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/external/structural_losses$ 

==應該是True我是一遍跑,一遍做記錄的。

第四部:下載數據集

官網給的方法下不了,直接去網址下載的:添加鏈接描述

第五步:訓練???

接下來不知道怎麼操作了???
有沒有大佬,求幫助

補充

src文件下的代碼就沒有主程序:
ValueError: Attempted relative import in non-package這個的解釋可以證明。

(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python autoencoder.py 
tf.estimator package not installed.
tf.estimator package not installed.
Traceback (most recent call last):
  File "autoencoder.py", line 12, in <module>
    from tflearn import is_training
ImportError: No module named tflearn
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ pip install tflearn
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting tflearn
  Downloading https://files.pythonhosted.org/packages/16/ec/e9ce1b52e71f6dff3bd944f020cef7140779e783ab27512ea7c7275ddee5/tflearn-0.3.2.tar.gz (98kB)
     |████████████████████████████████| 102kB 830kB/s 
Requirement already satisfied: numpy in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tflearn) (1.16.5)
Requirement already satisfied: six in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tflearn) (1.12.0)
Collecting Pillow (from tflearn)
  Downloading https://files.pythonhosted.org/packages/cc/a4/79b5f36d1e1a2b426073bd62217d1530fcd939950c2936651e6b39127a9b/Pillow-6.1.0-cp27-cp27mu-manylinux1_x86_64.whl (2.1MB)
     |████████████████████████████████| 2.1MB 2.6MB/s 
Building wheels for collected packages: tflearn
  Building wheel for tflearn (setup.py) ... done
  Created wheel for tflearn: filename=tflearn-0.3.2-cp27-none-any.whl size=128208 sha256=2702757527346fce68860f5fe48f627cb7324031951de6e4cbab2351b7b9625f
  Stored in directory: /home/l/.cache/pip/wheels/d0/f6/69/0ef3ee395aac2e5d15d89efd29a9a216f3c27767b43b72c006
Successfully built tflearn
Installing collected packages: Pillow, tflearn
Successfully installed Pillow-6.1.0 tflearn-0.3.2
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python autoencoder.py 
tf.estimator package not installed.
tf.estimator package not installed.
Traceback (most recent call last):
  File "autoencoder.py", line 12, in <module>
    from tflearn import is_training
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tflearn/__init__.py", line 4, in <module>
    from . import config
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tflearn/config.py", line 5, in <module>
    from .variables import variable
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tflearn/variables.py", line 7, in <module>
    from tensorflow.contrib.framework.python.ops import add_arg_scope as contrib_add_arg_scope
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/contrib/__init__.py", line 48, in <module>
    from tensorflow.contrib import distribute
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/contrib/distribute/__init__.py", line 34, in <module>
    from tensorflow.contrib.distribute.python.tpu_strategy import TPUStrategy
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/tpu_strategy.py", line 27, in <module>
    from tensorflow.contrib.tpu.python.ops import tpu_ops
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/contrib/tpu/__init__.py", line 73, in <module>
    from tensorflow.contrib.tpu.python.tpu.keras_support import tpu_model as keras_to_tpu_model
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/contrib/tpu/python/tpu/keras_support.py", line 71, in <module>
    from tensorflow.python.estimator import model_fn as model_fn_lib
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/python/estimator/__init__.py", line 25, in <module>
    import tensorflow.python.estimator.estimator_lib
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/python/estimator/estimator_lib.py", line 22, in <module>
    from tensorflow.python.estimator.canned.baseline import BaselineClassifier
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/python/estimator/canned/baseline.py", line 50, in <module>
    from tensorflow.python.estimator import estimator
ImportError: cannot import name estimator
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ pip install estimator
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting estimator
  Downloading https://files.pythonhosted.org/packages/c3/d2/62b223dc958401a6a7245c09dfe3975118f12798c1238ab9542ccb2e0e13/estimator-0.0.10.tar.gz
Building wheels for collected packages: estimator
  Building wheel for estimator (setup.py) ... done
  Created wheel for estimator: filename=estimator-0.0.10-cp27-none-any.whl size=7634 sha256=a718a21f729dd56166366ed5b29269dd50f9e5092a1a19375eec475c8ea67a17
  Stored in directory: /home/l/.cache/pip/wheels/ee/5b/e8/e85ccf69896de5d503891f26cc90b48193a4e5e77a28931168
Successfully built estimator
Installing collected packages: estimator
Successfully installed estimator-0.0.10
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python autoencoder.py 
tf.estimator package not installed.
tf.estimator package not installed.
Traceback (most recent call last):
  File "autoencoder.py", line 12, in <module>
    from tflearn import is_training
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tflearn/__init__.py", line 4, in <module>
    from . import config
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tflearn/config.py", line 5, in <module>
    from .variables import variable
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tflearn/variables.py", line 7, in <module>
    from tensorflow.contrib.framework.python.ops import add_arg_scope as contrib_add_arg_scope
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/contrib/__init__.py", line 48, in <module>
    from tensorflow.contrib import distribute
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/contrib/distribute/__init__.py", line 34, in <module>
    from tensorflow.contrib.distribute.python.tpu_strategy import TPUStrategy
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/tpu_strategy.py", line 27, in <module>
    from tensorflow.contrib.tpu.python.ops import tpu_ops
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/contrib/tpu/__init__.py", line 73, in <module>
    from tensorflow.contrib.tpu.python.tpu.keras_support import tpu_model as keras_to_tpu_model
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/contrib/tpu/python/tpu/keras_support.py", line 71, in <module>
    from tensorflow.python.estimator import model_fn as model_fn_lib
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/python/estimator/__init__.py", line 25, in <module>
    import tensorflow.python.estimator.estimator_lib
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/python/estimator/estimator_lib.py", line 22, in <module>
    from tensorflow.python.estimator.canned.baseline import BaselineClassifier
  File "/home/l/.virtualenvs/latent_3d_points/local/lib/python2.7/site-packages/tensorflow/python/estimator/canned/baseline.py", line 50, in <module>
    from tensorflow.python.estimator import estimator
ImportError: cannot import name estimator
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ pip install tensorflow-estimator==1.12.0
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting tensorflow-estimator==1.12.0
  ERROR: Could not find a version that satisfies the requirement tensorflow-estimator==1.12.0 (from versions: 1.10.6, 1.10.7, 1.10.8, 1.10.9, 1.10.10, 1.10.11, 1.10.12, 1.13.0rc0, 1.13.0, 1.14.0rc0, 1.14.0rc1, 1.14.0, 1.15.0, 1.15.1, 2.0.0)
ERROR: No matching distribution found for tensorflow-estimator==1.12.0
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ pip install tensorflow-estimator==1.10.12
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting tensorflow-estimator==1.10.12
  Downloading https://files.pythonhosted.org/packages/e7/5a/bace04b34b4a3214ed105899a27f3e94f0468b64bce46125ff42f495b1fc/tensorflow_estimator-1.10.12-py2.py3-none-any.whl (225kB)
     |████████████████████████████████| 235kB 824kB/s 
Requirement already satisfied: absl-py>=0.1.6 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow-estimator==1.10.12) (0.8.0)
Requirement already satisfied: numpy>=1.13.3 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow-estimator==1.10.12) (1.16.5)
Requirement already satisfied: mock>=2.0.0 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow-estimator==1.10.12) (3.0.5)
Requirement already satisfied: six>=1.10.0 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from tensorflow-estimator==1.10.12) (1.12.0)
Requirement already satisfied: enum34; python_version < "3.4" in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from absl-py>=0.1.6->tensorflow-estimator==1.10.12) (1.1.6)
Requirement already satisfied: funcsigs>=1; python_version < "3.3" in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from mock>=2.0.0->tensorflow-estimator==1.10.12) (1.0.2)
Installing collected packages: tensorflow-estimator
  Found existing installation: tensorflow-estimator 1.13.0
    Uninstalling tensorflow-estimator-1.13.0:
      Successfully uninstalled tensorflow-estimator-1.13.0
Successfully installed tensorflow-estimator-1.10.12
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python autoencoder.py 
Scipy not supported!
Traceback (most recent call last):
  File "autoencoder.py", line 14, in <module>
    from . in_out import create_dir, pickle_data, unpickle_data
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python encoders_decoders.py 
Scipy not supported!
Traceback (most recent call last):
  File "encoders_decoders.py", line 17, in <module>
    from . tf_utils import expand_scope_by_name, replicate_parameter_for_all_layers
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python evaluation_metrics.py 
Traceback (most recent call last):
  File "evaluation_metrics.py", line 18, in <module>
    from scipy.stats import entropy
ImportError: No module named scipy.stats
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ pip install scipy
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting scipy
  Using cached https://files.pythonhosted.org/packages/1d/f6/7c16d60aeb3694e5611976cb4f1eaf1c6b7f1e7c55771d691013405a02ea/scipy-1.2.2-cp27-cp27mu-manylinux1_x86_64.whl
Requirement already satisfied: numpy>=1.8.2 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from scipy) (1.16.5)
Installing collected packages: scipy
Successfully installed scipy-1.2.2
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python evaluation_metrics.py 
Traceback (most recent call last):
  File "evaluation_metrics.py", line 19, in <module>
    from . general_utils import iterate_in_chunks, unit_cube_grid_point_cloud
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python gan.py 
Traceback (most recent call last):
  File "gan.py", line 11, in <module>
    from . neural_net import Neural_Net
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python general_utils.py 
Traceback (most recent call last):
  File "general_utils.py", line 9, in <module>
    import matplotlib.pylab  as plt
ImportError: No module named matplotlib.pylab
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ pip install matplotlib
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting matplotlib
  Downloading https://files.pythonhosted.org/packages/32/6b/0368cfa5e1d1ae169ab7dc78addda3fd5e6262e48d7373a9114bac7caff7/matplotlib-2.2.4-cp27-cp27mu-manylinux1_x86_64.whl (12.8MB)
     |████████████████████████████████| 12.8MB 11.6MB/s 
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib)
  Using cached https://files.pythonhosted.org/packages/11/fa/0160cd525c62d7abd076a070ff02b2b94de589f1a9789774f17d7c54058e/pyparsing-2.4.2-py2.py3-none-any.whl
Collecting backports.functools-lru-cache (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Collecting subprocess32 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/32/c8/564be4d12629b912ea431f1a50eb8b3b9d00f1a0b1ceff17f266be190007/subprocess32-3.5.4.tar.gz (97kB)
     |████████████████████████████████| 102kB 335kB/s 
Collecting pytz (from matplotlib)
  Using cached https://files.pythonhosted.org/packages/87/76/46d697698a143e05f77bec5a526bf4e56a0be61d63425b68f4ba553b51f2/pytz-2019.2-py2.py3-none-any.whl
Requirement already satisfied: six>=1.10 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from matplotlib) (1.12.0)
Collecting python-dateutil>=2.1 (from matplotlib)
  Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl
Collecting kiwisolver>=1.0.1 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/3d/78/cb9248b2289ec31e301137cedbe4ca503a74ca87f88cdbfd2f8be52323bf/kiwisolver-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl (93kB)
     |████████████████████████████████| 102kB 11.7MB/s 
Collecting cycler>=0.10 (from matplotlib)
  Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.7.1 in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from matplotlib) (1.16.5)
Requirement already satisfied: setuptools in /home/l/.virtualenvs/latent_3d_points/lib/python2.7/site-packages (from kiwisolver>=1.0.1->matplotlib) (41.2.0)
Building wheels for collected packages: subprocess32
  Building wheel for subprocess32 (setup.py) ... done
  Created wheel for subprocess32: filename=subprocess32-3.5.4-cp27-cp27mu-linux_x86_64.whl size=48564 sha256=e1f5b739381c0dc8fef5db241872ef79a901c9eb9492a783b36ee12719e1876f
  Stored in directory: /home/l/.cache/pip/wheels/68/39/1a/5e402bdfdf004af1786c8b853fd92f8c4a04f22aad179654d1
Successfully built subprocess32
Installing collected packages: pyparsing, backports.functools-lru-cache, subprocess32, pytz, python-dateutil, kiwisolver, cycler, matplotlib
Successfully installed backports.functools-lru-cache-1.5 cycler-0.10.0 kiwisolver-1.1.0 matplotlib-2.2.4 pyparsing-2.4.2 python-dateutil-2.8.0 pytz-2019.2 subprocess32-3.5.4
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python general_utils.py 
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python generators_discriminators.py 
Traceback (most recent call last):
  File "generators_discriminators.py", line 12, in <module>
    from . encoders_decoders import encoder_with_convs_and_symmetry, decoder_with_fc_only
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python in_out.py 
Traceback (most recent call last):
  File "in_out.py", line 10, in <module>
    from . general_utils import rand_rotation_matrix
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python latent_gan.py 
Traceback (most recent call last):
  File "latent_gan.py", line 10, in <module>
    from . gan import GAN
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python latent_gan.py neural_net.py 
Traceback (most recent call last):
  File "latent_gan.py", line 10, in <module>
    from . gan import GAN
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python latent_gan.py point_net_ae.py 
Traceback (most recent call last):
  File "latent_gan.py", line 10, in <module>
    from . gan import GAN
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python raw_gan.py 
Traceback (most recent call last):
  File "raw_gan.py", line 12, in <module>
    from . gan import GAN
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python tf_utils.py 
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python vanilla_gan.py 
Traceback (most recent call last):
  File "vanilla_gan.py", line 12, in <module>
    from . gan import GAN
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ python w_gan_gp.py 
Traceback (most recent call last):
  File "w_gan_gp.py", line 12, in <module>
    from . gan import GAN
ValueError: Attempted relative import in non-package
(latent_3d_points) l@l-THUNDEROBOT-PC:~/Documents/latent_3d_points-master/src$ 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章