pytorch
Roc-Ng
NWPU
展开
-
【无标题】
随机种子设置后结果仍然浮动变化的问题原创 2022-09-02 15:33:58 · 145 阅读 · 0 评论 -
Pytorch 数组反转报错 ValueError some of the strides of a given numpy array are negative
我在跑以下代码时出现错误pic = pic[:,:, ::-1,:]pic = torch.from_numpy(pic.transpose([3,0,1,2]))## ValueError: some of the strides of a given numpy array are negative解决方案pic = pic[:,:, ::-1,:].copy() #加上.cop...原创 2019-12-04 11:31:43 · 681 阅读 · 0 评论 -
pytorch之坑持续更新。。
刚开始从tf转战pytorch,开始记录一下自己遇到的一些坑,不断更新。2018-9-101. one of the variables needed for gradient computation has been modified by an inplace operationpytorch版本0.4遇到这个问题之后,百度有以下解决方式:解决方法一:如果使用的是p...原创 2018-09-10 21:28:10 · 1688 阅读 · 1 评论 -
【Temporal Segment Networks】 pytorch代码总结
代码写的特别好,很有借鉴意义。链接如下:[github]: https://github.com/yjxiong/tsn-pytorch1. @propertyclass VideoRecord(object): def __init__(self, row): self._data = row @property #@prproperty的用法 将一个类方...原创 2018-11-05 16:06:41 · 2140 阅读 · 2 评论