原创 pytorch中,如何實現同樣的隨機變換應用於圖像(Image)和標籤(label,mask)上
how to use the same random transform on the pair of image and mask. 重寫pytorch的dataset類的__getitem__ def __getitem__(sel
原创 Floating point error (core dumped) in pytorch
When doing torchvision.transforms.Normalize(mean=[0.5], std=[0.5]), get the error: 浮點數例外 (核心已轉儲) or Floating point erro
原创 conda 安裝pytorch的時候避免更新python版本
在安裝pytorch1.1的時候使用如下命令 conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 會同時更新python3.6到python3.7 在清華源 h
原创 conda 安裝pytorch 慢
conda安裝pytorch慢 conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 -c pytorch 去掉命令行 -c pytorch,-c是用於指定鏡像