liufeiqiang123 / DRMSFFN

Code for the paper:"A deep recursive multi-scale feature fusion network for image super-resolution"
10 stars 1 forks source link

code issues #1

Open unhance opened 1 year ago

unhance commented 1 year ago

Sorry to bother you, but when running the code, the following error always occurs:RuntimeError:stack expects each tensor to be equal size,but got [3,74,96] at entry 0 and [3,96,96],I replaced the portrait image with a landscape image and it works

unhance commented 1 year ago

Why does this happen?

liufeiqiang123 commented 1 year ago

Why does this happen?

我这个网络训练的时候LR size=48*48,你的低分辨率训练图像是不是尺寸比较小?

liufeiqiang123 commented 1 year ago

Sorry to bother you, but when running the code, the following error always occurs:RuntimeError:stack expects each tensor to be equal size,but got [3,74,96] at entry 0 and [3,96,96],I replaced the portrait image with a landscape image and it works

我这个网络在训练的时候是采用DIV2K数据集进行训练的,那个数据集的图像分辨率是2K*2K的,我认为你的训练集图像可能分辨率比较低。

liufeiqiang123 commented 1 year ago

刘博,我也用的DIV2K的数据集,我觉着还是我数据集的问题,还有就是JSON文件里头的dataroot_HR,dataroot_LR的设定,您用的npy文件,我用的实际的训练集img,因为在训练之前都是没有npy文件的,我就把训练集的绝对路径配置在了JSON文件里头的dataroot_HR,dataroot_LR上,会不会是这个原因呢   韩小伟 @.   ------------------ 原始邮件 ------------------ 发件人: "Feiqiang @.>; 发送时间: 2023年2月24日(星期五) 中午11:14 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [liufeiqiang123/DRMSFFN] code issues (Issue #1) Sorry to bother you, but when running the code, the following error always occurs:RuntimeError:stack expects each tensor to be equal size,but got [3,74,96] at entry 0 and [3,96,96],I replaced the portrait image with a landscape image and it works 我这个网络在训练的时候是采用DIV2K数据集进行训练的,那个数据集的图像分辨率是2K2K的,我认为你的训练集图像可能分辨率比较低。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: **@.***>

采用绝对路劲是可以的,ubutu系统下路径是/,建议你的路径子文件夹之间也采用/,还有我这个代码如果你输入的不是npy格式的图像,会将其转换为npy格式的图像在进行训练的。

liufeiqiang123 commented 1 year ago

好的,刘博,还是数据集有问题。我这个服务器上有To Desk远程操控软件,您可以操控着看一下,我再开个腾讯会议,您把您的微信推给我,我加一下您吧,加上您之后,要是有时间,您指导我一下。 腾讯会议号:322 571 368 To Desk :     设备代码 :922 779 637      密码:040600 我的手机号:15769690641   韩小伟 @.   ------------------ 原始邮件 ------------------ 发件人: "Feiqiang @.>; 发送时间: 2023年2月24日(星期五) 中午1:21 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [liufeiqiang123/DRMSFFN] code issues (Issue #1) 如果你有时间,你开一个腾讯会议吧,我来和你交流一下。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

你好,同学,我最近比较忙,忙于弄博士毕业论文的事情,你先自己摸索一下,我那个代码是完全可以跑通的。

unhance commented 1 year ago

刘博麻烦您了,您能把您的数据集发给我吗,我再接着调试一下

---Original--- From: "Feiqiang @.> Date: Sat, Feb 25, 2023 10:19 AM To: @.>; Cc: @.**@.>; Subject: Re: [liufeiqiang123/DRMSFFN] code issues (Issue #1)

好的,刘博,还是数据集有问题。我这个服务器上有To Desk远程操控软件,您可以操控着看一下,我再开个腾讯会议,您把您的微信推给我,我加一下您吧,加上您之后,要是有时间,您指导我一下。 腾讯会议号:322 571 368 To Desk :     设备代码 :922 779 637      密码:040600 我的手机号:15769690641   韩小伟 @.   … ------------------ 原始邮件 ------------------ 发件人: "Feiqiang @.>; 发送时间: 2023年2月24日(星期五) 中午1:21 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [liufeiqiang123/DRMSFFN] code issues (Issue #1) 如果你有时间,你开一个腾讯会议吧,我来和你交流一下。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

你好,同学,我最近比较忙,忙于弄博士毕业论文的事情,你先自己摸索一下,我那个代码是完全可以跑通的。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

liufeiqiang123 commented 1 year ago

已经回复到您的邮箱了,注意查收。

liufeiqiang123 commented 1 year ago

DIV2K数据集的npy格式的数据很大,发起来很慢,我将set5的npy格式的数据集发给你,你在训练的时候将json文件里面的LR_size设小一些,就设为8,然后batch size也设置小一些,设为1,就可以直接跑了,前提条件是你的深度学习环境已经配好了。

在 2023-02-25 10:23:46,"unhance" @.***> 写道:

刘博麻烦您了,您能把您的数据集发给我吗,我再接着调试一下

---Original--- From: "Feiqiang @.> Date: Sat, Feb 25, 2023 10:19 AM To: @.>; Cc: @.**@.>; Subject: Re: [liufeiqiang123/DRMSFFN] code issues (Issue #1)

好的,刘博,还是数据集有问题。我这个服务器上有To Desk远程操控软件,您可以操控着看一下,我再开个腾讯会议,您把您的微信推给我,我加一下您吧,加上您之后,要是有时间,您指导我一下。 腾讯会议号:322 571 368 To Desk :     设备代码 :922 779 637      密码:040600 我的手机号:15769690641   韩小伟 @.   … ------------------ 原始邮件 ------------------ 发件人: "Feiqiang @.>; 发送时间: 2023年2月24日(星期五) 中午1:21 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [liufeiqiang123/DRMSFFN] code issues (Issue #1) 如果你有时间,你开一个腾讯会议吧,我来和你交流一下。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

你好,同学,我最近比较忙,忙于弄博士毕业论文的事情,你先自己摸索一下,我那个代码是完全可以跑通的。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

unhance commented 1 year ago

好的,刘博,真的太麻烦您了,非常感谢您繁忙之际还能帮助我,谢谢您

韩小伟 @.***

 

------------------ 原始邮件 ------------------ 发件人: "liufeiqiang123/DRMSFFN" @.>; 发送时间: 2023年2月25日(星期六) 上午10:50 @.>; @.**@.>; 主题: Re: [liufeiqiang123/DRMSFFN] code issues (Issue #1)

DIV2K数据集的npy格式的数据很大,发起来很慢,我将set5的npy格式的数据集发给你,你在训练的时候将json文件里面的LR_size设小一些,就设为8,然后batch size也设置小一些,设为1,就可以直接跑了,前提条件是你的深度学习环境已经配好了。

在 2023-02-25 10:23:46,"unhance" @.***> 写道:

刘博麻烦您了,您能把您的数据集发给我吗,我再接着调试一下

---Original--- From: "Feiqiang @.> Date: Sat, Feb 25, 2023 10:19 AM To: @.>; Cc: @.**@.>; Subject: Re: [liufeiqiang123/DRMSFFN] code issues (Issue #1)

好的,刘博,还是数据集有问题。我这个服务器上有To Desk远程操控软件,您可以操控着看一下,我再开个腾讯会议,您把您的微信推给我,我加一下您吧,加上您之后,要是有时间,您指导我一下。 腾讯会议号:322 571 368 To Desk :     设备代码 :922 779 637      密码:040600 我的手机号:15769690641   韩小伟 @.   … ------------------ 原始邮件 ------------------ 发件人: "Feiqiang @.>; 发送时间: 2023年2月24日(星期五) 中午1:21 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [liufeiqiang123/DRMSFFN] code issues (Issue #1) 如果你有时间,你开一个腾讯会议吧,我来和你交流一下。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

你好,同学,我最近比较忙,忙于弄博士毕业论文的事情,你先自己摸索一下,我那个代码是完全可以跑通的。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>