GuanHengcong

Results 3 comments of GuanHengcong

> 1. SFE模块的unfold可以用如下模块代替,可以减少很多计算子 > > ``` > import torch > import torch.nn as nn > class Unfold(nn.Module): > def __init__(self): > super().__init__() > kernel = torch.eye(3) > kernel = kernel.view(3,...

> @GuanHengcong 因为重构以后的Unfold它的名称就和原来state_dict里面的对不上了,最简单的办法就是把convert_to_stream里面的 > > ``` > else: > raise (....) > ``` > > 给注释了 以及SFE的后面也不用reshape 大佬,很抱歉没有及时回复您消息,我把reshape和else都去掉了,报错如下,您可以再帮忙看看吗 ![image](https://github.com/Xiaobin-Rong/gtcrn/assets/90229170/fe01f1c1-110e-481e-8656-f4a29ffc0a83) ![image](https://github.com/Xiaobin-Rong/gtcrn/assets/90229170/45e53a0f-a3db-4d11-b1b6-c78a66fbdc2f) ![image](https://github.com/Xiaobin-Rong/gtcrn/assets/90229170/869529fb-8f8e-4e39-949f-8cb42408477f) 在“torch.onnx.export(”导出这行报错

> @GuanHengcong 整体模型的里面的那个SFE的channel数是3,你把那个换成 > > ``` > import torch > import torch.nn as nn > class Unfold_in(nn.Module): > def __init__(self): > super().__init__() > kernel = torch.eye(3) > kernel = kernel.view(3,...