[mcj]IDM重新安装chrome插件|IDM谷歌插件
一般来说,我们只需要重新安装IDM即可,下载地址为: https://www.internetdownloadmanager.com/download.html 但是,有时候我们并不想重新安装,这个时候,需要单独的安装插件~ 打开谷歌应用商 […]
[mcj]记录一下最近的收录情况
现在基本上bing秒收,Google当天收录,Baidu隔天收录,360目前只收录了首页,搜狗和神马还没有动静~ 几个网站的提交入口: bing:https://www.bing.com/webmaster/home/mysites?ord […]
[mcj]AttributeError: module ‘torch.nn.functional’ has no attribute ‘sigmod’
使用pytorch的时候,如果我们使用torch.nn.functional中的sigmoid和tanh函数的话
1 2 3 4 |
y_relu = F.relu(x).data.numpy y_sigmod = F.sigmod(x).data.numpy y_tanh = F.tanh(x).data.numpy y_softplus = F.softplus(x).data.numpy |
可能会报错: [crayon-68645523dc17e62 […]
[mcj]RuntimeError: Trying to backward through the graph a second time, but the buffers have….
pytorch 进行反向传播有时会报错:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
RuntimeError Traceback (most recent call last) <ipython-input-52-049eeb1d9b54> in <module> ----> 1 v_out.backward() 2 print(variable.grad) ~/.conda/envs/pytorch/lib/python3.6/site-packages/torch/tensor.py in backward(self, gradient, retain_graph, create_graph) 100 products. Defaults to ``False``. 101 """ --> 102 torch.autograd.backward(self, gradient, retain_graph, create_graph) 103 104 def register_hook(self, hook): ~/.conda/envs/pytorch/lib/python3.6/site-packages/torch/autograd/__init__.py in backward(tensors, grad_tensors, retain_graph, create_graph, grad_variables) 88 Variable._execution_engine.run_backward( 89 tensors, grad_tensors, retain_graph, create_graph, ---> 90 allow_unreachable=True) # allow_unreachable flag 91 92 RuntimeError: Trying to backward through the graph a second time, but the buffers have already been freed. Specify retain_graph=True when calling backward the first time. |
这是因为第一次反向传播之后,这个计算图的内存就会被释放掉,这样的话再次进行反向传播就不行了,解决方法就是添加retain_graph […]
[mcj]如何在ubuntu的Jupyter中使用对应的环境
在安装了anaconda之后,我新建了一个环境pytorch,然后我想在以后用jupyter notebook来操作这个pytorch虚拟环境,那么我该怎么做呢?有两个方法 方法1: 首先激活虚拟环境 [crayon-68645523dd5 […]
[mcj]acrobat使用说明
收集的关于acrobat的使用说明: Adobe Acrobat X Pro 10.1.0关闭自动更新的方法 【acrobat】acrobat 字符分析 | 提取pdf文字 【acrobat】Acrobat Pro 打开后定位到上次浏览 【 […]
[mcj]图像复原的相关工作
【mcj】图像复原的相关工作 《Crafting a Toolchain for Image Restoration by Deep Reinforcement Learning》 这篇文章是CVPR2018年的作品,商汤科技出品。总得来 […]
[mcj]如何插入脚注到两栏的左边一栏
本文教你如何将脚注插入到两栏文章的左边一栏。 现在有这样一篇文章: 现在想让脚注仅仅在两分栏的左边一栏,如果我们单纯的在1位置插入的话,脚注会横跨两栏,如下: 这当然不是我们想要的效果,解决办法是: 首先另存为doc格式的文章 然后我们将鼠 […]
[mcj]把Excel中的单元格作为一个引用的变量
我想实现一个功能,即在某个单元格内放入数字,比如A1=5,B1=7,这时我想求AVERAGE(C(A1):C(B1))的值 如果单纯的这样写是无法实现的,会提示公式有问题: 其实我们可以利用INDIRECT函数进行循环套用来解决~输入: [ […]
[mcj]利用3Dmax对模型进行缩放旋转平移操作及相关快捷键
最近想用3Dmax录制一段模拟物体在空间中运动的视频~ 大致内容就是,用鼠标拖动物体,然后模仿物体的运动,让物体进行移动、旋转、加速、减速、远近(也就是缩放)这些操作~ 如果单纯的用快捷键的话,一般流程就是按下想要的功能,然后选中物体,然后 […]