![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pytorch
一元童鞋
这个作者很懒,什么都没留下…
展开
-
No such file or directory: site-packages\\numpy-1.21.2.dist-info\\METADATA‘
numpy-1.21.2.dist-info\\METADATA'原创 2023-02-13 10:14:11 · 362 阅读 · 1 评论 -
pytorch 使用torchsummary出现torchsummary tuple index out of range error
注销代码:# summary[m_key]["input_shape"] = list(input[0].size())# summary[m_key]["input_shape"][0] = batch_size加入代码if len(input) != 0: summary[m_key]["input_shape"] = list(input[0].size()) summary[m_key]["input_shape"][0] = batch_sizeelse:翻译 2021-04-26 12:07:32 · 2354 阅读 · 6 评论 -
pytorch中,如何实现同样的随机变换应用于图像(Image)和标签(label,mask)上
how to use the same random transform on the pair of image and mask.重写pytorch的dataset类的__getitem__def __getitem__(self,index): img = Image.open(self.data[index]).convert('RGB') ...转载 2020-02-19 15:30:59 · 3851 阅读 · 5 评论 -
conda 安装pytorch的时候避免更新python版本
在安装pytorch1.1的时候使用如下命令conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0会同时更新python3.6到python3.7在清华源https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64/里可以看到:...原创 2020-02-12 14:03:03 · 3739 阅读 · 2 评论 -
conda 安装pytorch 慢
conda安装pytorch慢conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 -c pytorch去掉命令行 -c pytorch,-c是用于指定镜像conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0可以把国内的源加上...原创 2020-02-12 11:23:33 · 605 阅读 · 0 评论 -
Floating point error (core dumped) in pytorch
When doing torchvision.transforms.Normalize(mean=[0.5], std=[0.5]),get the error: 浮点数例外 (核心已转储) or Floating point error (core dumped)please check if the import image is integer type...原创 2020-02-11 13:30:28 · 757 阅读 · 0 评论