原创 Python的一些收集

7. 讓__getitem__ item不變 In Pytorch DataLoader, __getitem__ item is not fixed when   train_loader = DataLoader(train_dat

原创 關於conda 的收集

2. 移植conda環境 conda env export -n py37 --from-history > env.yml conda env create -f env.yml If you want to make your en

原创 pip和apt的區別

轉自https://askubuntu.com/questions/431780/apt-get-install-vs-pip-install pip和apt的區別 PyPI is the Python Package Index — a

原创 Pytorch GPU 設置

a. os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # os.environ["CUDA_VISIBLE_DEVICES"]='0,1,2,3' net = net.cuda() inpu

原创 How to Directory in a Docker Container.

How to Directory in a Docker Container. 將文件路徑掛載在Docker Container上.   1. Mount the current directory. docker run -it -v

原创 Ubuntu14.04+caffe+SSD的配置

此步驟很簡單,在liuwei的GitHub上都有,地址是 https://github.com/weiliu89/caffe/tree/ssd記錄下了所有遇到的問題,經過反覆多人在不同PC上配置驗證可行。如有新的error或warning

原创 Ubuntu14.04+YOLOv3配置

此步驟很簡單,基本和YOLOv2一樣,在作者項目主頁上有完整步驟。項目主頁:https://pjreddie.com/darknet/yolo/論文:https://pjreddie.com/media/files/papers/YOLO

原创 Multi-GPU Usage:caffe下的多GPU同時使用

最近在跑FCN的時候發現caffe.set_device()只能有一個int參數,導致只能用一個GPU跑,於是開始着手解決。 caffe聲明:https://github.com/BVLC/caffe/blob/master/docs/m

原创 Nvidia Jetson TX2刷機過程

近來,項目需要,實驗室配置了TX2,有幸能夠接觸使用,下面簡單介紹刷機過程。 寫在前面:  a、使用VM虛擬機Ubuntu14.04成功刷機,不過聽說有的會出現連接不穩定的情況,我沒遇到。 b、後面下載的部分大約有近40G,所以需要空出空