<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[AllenPuRZ的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/AllenPuRZ</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; AllenPuRZ]]></copyright><item><title><![CDATA[pytorch named_children()和named_parameters()的区别]]></title><link>https://blog.csdn.net/AllenPuRZ/article/details/120645767</link><guid>https://blog.csdn.net/AllenPuRZ/article/details/120645767</guid><author>AllenPuRZ</author><pubDate>Fri, 08 Oct 2021 09:42:34 +0800</pubDate><description><![CDATA[named_children()主要用于返回神经网打包的第一层的layer名称

named_parameters()主要用于返回神经网打包的每一层的名字

以resnet18为例子，其每一个layer（也就是basic block）由多个 nn.conv/nn.linear/nn.bn/nn.relu组成，但是在 named_children()里，只会返回最外层的basic block，不会往里面深入，但是named_parameters()正好相反，会深入进去一个子layer一个子layer的返回。
]]></description><category></category></item><item><title><![CDATA[关于在使用load_state_dict出现 RuntimeError: Error(s) in loading state_dict for 某net ,Unexpected key(s) in]]></title><link>https://blog.csdn.net/AllenPuRZ/article/details/119070677</link><guid>https://blog.csdn.net/AllenPuRZ/article/details/119070677</guid><author>AllenPuRZ</author><pubDate>Sun, 25 Jul 2021 03:35:41 +0800</pubDate><description><![CDATA[大多数情况下是因为，你在gpu上训练的model， 或者是使用了to(device)的模型，都是一个完整的模型对象，所以会在模型对象的名称最开始会多一个module。

这个时候建议使用 ：

model.load_state_dict(torch.load(model_path, map_location=device.type)['state_dict'])

可直接复制
...]]></description><category></category></item><item><title><![CDATA[数据集Clothing 1M详解]]></title><link>https://blog.csdn.net/AllenPuRZ/article/details/114080665</link><guid>https://blog.csdn.net/AllenPuRZ/article/details/114080665</guid><author>AllenPuRZ</author><pubDate>Thu, 25 Feb 2021 14:25:32 +0800</pubDate><description><![CDATA[最近读到论文


Learning from Massive Noisy Labeled Data for Image Classification

发现论文用的数据集是他们自己写的，很是佩服。

数据集具体如下：

1.一共有14种类别，1000000张图像，每一张图都被自动的分配了一个基于周围环境所得出的“伪标签”，但其中作者人为的挑选出了72, 409张干净的数据

2.含有伪标签的数据集都只用作于训练，而干净的数据集则被分为 训练/验证/测试集
...]]></description><category></category></item><item><title><![CDATA[Pytorch： 为什么会TypeError: ‘DataLoader‘ object is not subscriptable]]></title><link>https://blog.csdn.net/AllenPuRZ/article/details/112847946</link><guid>https://blog.csdn.net/AllenPuRZ/article/details/112847946</guid><author>AllenPuRZ</author><pubDate>Tue, 19 Jan 2021 17:25:29 +0800</pubDate><description><![CDATA[为什么会出现这个原因：

是因为 torch的dataset是个可以用 dataset[num] 来iterate的对象

但是torch的dataloader不可以
]]></description><category></category></item><item><title><![CDATA[mac安装 homebrew与wget最简单的方法]]></title><link>https://blog.csdn.net/AllenPuRZ/article/details/112786757</link><guid>https://blog.csdn.net/AllenPuRZ/article/details/112786757</guid><author>AllenPuRZ</author><pubDate>Mon, 18 Jan 2021 16:11:15 +0800</pubDate><description><![CDATA[因为自带软件不同的原因，mac和linux不一样，没有自带的wget

所以需要先安装homebrew再安装wget

其他的方法基本都是扯淡（因为mac的适配不同，所以不推荐下载zip文件./config方法 再 make， make install方法，如果不怕麻烦其实可以试试）

我推荐 先去这个网站

https://raw.githubusercontent.com/Homebrew/install/master/install.sh

把这个网站的内容 另存为

brew_install.sh.]]></description><category></category></item><item><title><![CDATA[关于pytorch中的 libmkl_core.dylib 缺失问题]]></title><link>https://blog.csdn.net/AllenPuRZ/article/details/112726222</link><guid>https://blog.csdn.net/AllenPuRZ/article/details/112726222</guid><author>AllenPuRZ</author><pubDate>Sat, 16 Jan 2021 22:36:14 +0800</pubDate><description><![CDATA[由于在清理电脑的过程中，误删了几个lib，（mac ssd 256真的伤不起）所以在import torch的时候

错误信息如下：

OSError: dlopen 。。。。。。Library not loaded: @rpath/libmkl_core.dylib

Referenced from:：。。。。 libtorch_global_deps.dylib

Reason: image not found

解决方法：

退回base， 然后conda update conda

会自动补缺包

]]></description><category></category></item><item><title><![CDATA[Cuda/Cudatoolkit/Cudann/NVCC的安装顺序]]></title><link>https://blog.csdn.net/AllenPuRZ/article/details/111598113</link><guid>https://blog.csdn.net/AllenPuRZ/article/details/111598113</guid><author>AllenPuRZ</author><pubDate>Wed, 23 Dec 2020 20:19:37 +0800</pubDate><description><![CDATA[cuda，cudatoolkit，chudann的顺序：
关于他们是什么，网上已经说得很清楚了。
我主要是想帮大家捋一下他们的安装顺序：
在安装cuda的时候，一般是这样：去英伟达官网搜 cudatool kit，然后下载1.x个G的本地安装包，然后运行sh，注意：在安装的过程中，会让你选择是否安装xxxxx，一般来说，空机器需要安装顺序为 驱动driver-cudatoolkit（这一步也就是cuda）-选择路径（一般条件下为/usr/local/cuda/。
然后慢慢等…
安装完成如果没报错，允许 nv]]></description><category></category></item><item><title><![CDATA[2020-12-02 ModuleNotFoundError: No module named ‘skbuild‘问题解决]]></title><link>https://blog.csdn.net/AllenPuRZ/article/details/110491360</link><guid>https://blog.csdn.net/AllenPuRZ/article/details/110491360</guid><author>AllenPuRZ</author><pubDate>Wed, 02 Dec 2020 17:08:13 +0800</pubDate><description><![CDATA[在安装opencv的时候：

一般使用 pip install opencv-python 命令，但会出现这个错误：ModuleNotFoundError: No module named 'skbuild'

这是因为pip版本过低，无法理解 linux的命令

此时应该升级 pip， 使用 pip upgrade就可以解决这个问题
...]]></description><category></category></item><item><title><![CDATA[pycocotools MACBOOK pip安装报错以及解决]]></title><link>https://blog.csdn.net/AllenPuRZ/article/details/110387923</link><guid>https://blog.csdn.net/AllenPuRZ/article/details/110387923</guid><author>AllenPuRZ</author><pubDate>Mon, 30 Nov 2020 14:45:07 +0800</pubDate><description><![CDATA[如果是因为包下载慢的原因，请refer to 其他人的换源方案（清华源）

最近在使用coco数据集的处理工具的时候， 使用 ‘pip install’的时候， mac会报错：ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

是因为 pip 会自动把 这个包链接到 conda的virtual env下，引发gcc的链接错误，（我估计是]]></description><category></category></item><item><title><![CDATA[Java JDK测试]]></title><link>https://blog.csdn.net/AllenPuRZ/article/details/51068813</link><guid>https://blog.csdn.net/AllenPuRZ/article/details/51068813</guid><author>AllenPuRZ</author><pubDate>Tue, 05 Apr 2016 22:21:40 +0800</pubDate><description><![CDATA[在eclipse的文件夹内测试JDK的位数，使用
﻿﻿
System.getProperty("sun.arch.data.model"); 即可
切记，64位的eclipse只能64位的JDK，32位不行]]></description><category></category></item></channel></rss>