踩坑log

安装torch出错

CMake Error at THC_generated_THCTensorMath.cu.o.cmake:267 (message):
做环境变量设置:export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"

再次运行:./install.sh

OK!

caffe2的trick

  1. make -j8
  2. cd build
  3. 删除 caffe2/build/caffe2/proto/caffe2_legacy_pb2.py文件中所有的 ,file=DESCRIPTOR
  4. sudo make install
  5. 在~/.bashrc中设置
    export PYTHONPATH=/usr/local:$PYTHONPATH
    export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

past 什么是鬼?

pip install future
就可以了,真是扯淡!

Save the pre-trained downloaded model from gluon model zoo

import mxnet as mx
from mxnet.gluon.model_zoo import vision as models
pretrained_net = models.vgg19(pretrained=True)
pretrained_net.hybridize()
pretrained_net(mx.nd.ones((1,3,224,224)))
pretrained_net.export('./bbb')

安装mongoDB

  1. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
  2. echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list

因为3.6是最新版,随着版本的开发,可以改为其他的版本号

  1. sudo apt-get update
  2. sudo apt install mongodb-server

你可能感兴趣的:(踩坑log)