本文记录一下Hiwi的相关笔记。
how to make
1 | ssh ssh1 |
neural-motifs
-
env
- conda
- conda install python=3.6
- conda install pytorch=0.3.0 torchvision=0.2.0 cuda90 -c pytorch
- conda install cython
- conda install h5py
- pycocotools:
git clone https://github.com/pdollar/coco.git | make | python setup.py build_ext install
- conda install dill
- conda install pandas
- pip install overrides
-
dataset:
/data/scene_understanding/Visual_Genome/ -
pycharm:
sh ~/tmp/pycharm-community-2020.2.1/bin/pycharm.sh &
1 | export PYTHONPATH=/home/xujing/Dokumente/neural-motifs/:/home/xujing/Dokumente/neural-motifs/lib/ |
DYNSG
env
- conda install pytorch=1.0.0 torchvision=0.2.1 cuda100 -c pytorch
- opencv
conda install -c https://conda.anaconda.org/menpo opencv
pip install opencv-python - pip install easydict
1 | export PATH=/usr/local/cuda-10.0/bin:$PATH |
issues
-
_C.cpython-36m-x86_64-linux-gnu.so
pip install -U torchvision==0.4.0 -
如何更换 GPU
需要重新编译fasterrcnn1
2cd fasterrcnn/lib
python setup.py build develop
cuda
import torch
torch.cuda.is_available()
print(torch.version.cuda)
torch.backends.cudnn.enabled
python -c “import torch;print(torch.version.cuda)”
CUDA_VISIBLE_DEVICES=3
nvidia-smi
conda
- source activate $envname
- source deactivate
- conda list -e requeirment.txt
- conda install --yes --file requirements.txt
- conda env export > environment.yaml
- conda env create -f environment.yaml
- conda create -n py36 python=3.6
software
intern net:
firefox http://tntintern/
emial:
thunderbird
linux command
check the size of path:
du -h filepath
screen:
screen -S $Name
screen -ls
screen -r $id
[detached] ctrl+a+d
conda pip env transform
vnc
- on servers (cp202-03)
vncserver -geometry 1920x1080 :8 - on local (mac)
ssh -fNCT -L 5902:cp202-03:5908 xujing@ssh1.tnt.uni-hannover.de - on vnc view
connect: localhost:5902 - kill
vncserver -kill :8
ssh
LocalForward 5902 cp202-03:5908