安装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
- make -j8
- cd build
- 删除 caffe2/build/caffe2/proto/caffe2_legacy_pb2.py文件中所有的 ,file=DESCRIPTOR
- sudo make install
- 在~/.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
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
- 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是最新版,随着版本的开发,可以改为其他的版本号
- sudo apt-get update
- sudo apt install mongodb-server