jingyuanli001 / RFR-Inpainting

The source code for CVPR 2020 accepted paper "Recurrent Feature Reasoning for Image Inpainting"
MIT License
355 stars 76 forks source link

How can I change the code to fix images of other sizes? For example: 1024*768 #59

Closed caimaomao315 closed 2 years ago

01SHENyankun commented 2 years ago

你好,请问你复现了这个网络了吗,有点问题想请教,2635505974

caimaomao315 commented 2 years ago

嗯嗯 什么问题 

------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 上午9:12 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

你好,请问你复现了这个网络了吗,有点问题想请教,2635505974

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

01SHENyankun commented 2 years ago

我按着readme里的命令进行测试,发现运行不成功,想问问你,你在训练完成以后都进行了什么操作,微调?怎么进行测试啊

caimaomao315 commented 2 years ago

进行微调和test的时候  分别加上default=True,然后训练的时候这份代码我记得是在别人模型基础上进行训练的'--model_path', type=str, default="pretrainedModel/g_640000.pth"  即先调用别人的模型 再训练

------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:23 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

我按着readme里的命令进行测试,发现运行不成功,想问问你,你在训练完成以后都进行了什么操作,微调?怎么进行测试啊

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

01SHENyankun commented 2 years ago

首先谢谢你的回复,这是我之前测试时的两个命令,但是都失败了,我需要在这基础之上加什么吗

------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:33 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

进行微调和test的时候  分别加上default=True,然后训练的时候这份代码我记得是在别人模型基础上进行训练的'--model_path', type=str, default="pretrainedModel/g_640000.pth"  即先调用别人的模型 再训练

------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:23 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

我按着readme里的命令进行测试,发现运行不成功,想问问你,你在训练完成以后都进行了什么操作,微调?怎么进行测试啊

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

caimaomao315 commented 2 years ago

你哪两个命令?

------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:40 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

首先谢谢你的回复,这是我之前测试时的两个命令,但是都失败了,我需要在这基础之上加什么吗

------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:33 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

进行微调和test的时候  分别加上default=True,然后训练的时候这份代码我记得是在别人模型基础上进行训练的'--model_path', type=str, default="pretrainedModel/g_640000.pth"  即先调用别人的模型 再训练

------------------ 原始邮件 ------------------
发件人: "jingyuanli001/RFR-Inpainting" @.>;
发送时间: 2021年11月20日(星期六) 晚上9:23
@.>;
@.**@.>;
主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

我按着readme里的命令进行测试,发现运行不成功,想问问你,你在训练完成以后都进行了什么操作,微调?怎么进行测试啊


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

01SHENyankun commented 2 years ago

 python run.py --test

还有  python run.py --data_root D:/Datasets/celebA/img/img_align_celeba --mask_root D:/Datasets/masks/irregular_mask --model_path checkpoints/g_10000.pth --test --mask_mode 2

------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:47 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

你哪两个命令?

------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:40 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

首先谢谢你的回复,这是我之前测试时的两个命令,但是都失败了,我需要在这基础之上加什么吗

------------------ 原始邮件 ------------------
发件人: "jingyuanli001/RFR-Inpainting" @.>;
发送时间: 2021年11月20日(星期六) 晚上9:33
@.>;
@.**@.>;
主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

进行微调和test的时候  分别加上default=True,然后训练的时候这份代码我记得是在别人模型基础上进行训练的'--model_path', type=str, default="pretrainedModel/g_640000.pth"  即先调用别人的模型 再训练

------------------ 原始邮件 ------------------
发件人: "jingyuanli001/RFR-Inpainting" @.>;
发送时间: 2021年11月20日(星期六) 晚上9:23
@.>;
@.**@.>;
主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

我按着readme里的命令进行测试,发现运行不成功,想问问你,你在训练完成以后都进行了什么操作,微调?怎么进行测试啊


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

caimaomao315 commented 2 years ago

从这看的话 是先训练出自己的模型 再进行test   然后  路径那 使用相对路径  ------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:48 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

 python run.py --test

还有  python run.py --data_root D:/Datasets/celebA/img/img_align_celeba --mask_root D:/Datasets/masks/irregular_mask --model_path checkpoints/g_10000.pth --test --mask_mode 2

------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:47 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

你哪两个命令?

------------------ 原始邮件 ------------------
发件人: "jingyuanli001/RFR-Inpainting" @.>;
发送时间: 2021年11月20日(星期六) 晚上9:40
@.>;
@.**@.>;
主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

首先谢谢你的回复,这是我之前测试时的两个命令,但是都失败了,我需要在这基础之上加什么吗

------------------ 原始邮件 ------------------
发件人: "jingyuanli001/RFR-Inpainting" @.>;
发送时间: 2021年11月20日(星期六) 晚上9:33
@.>;
@.**@.>;
主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

进行微调和test的时候  分别加上default=True,然后训练的时候这份代码我记得是在别人模型基础上进行训练的'--model_path', type=str, default="pretrainedModel/g_640000.pth"  即先调用别人的模型 再训练    

------------------ 原始邮件 ------------------    
发件人:                                                                                                                        "jingyuanli001/RFR-Inpainting"                                                                                    ***@***.***>;    
发送时间: 2021年11月20日(星期六) 晚上9:23    
***@***.***>;    
***@***.******@***.***>;    
主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)    

我按着readme里的命令进行测试,发现运行不成功,想问问你,你在训练完成以后都进行了什么操作,微调?怎么进行测试啊    

—    
You are receiving this because you authored the thread.    
Reply to this email directly, view it on GitHub, or unsubscribe.    
Triage notifications on the go with GitHub Mobile for iOS or Android.    


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

01SHENyankun commented 2 years ago

你好,咱们能加一个联系方式吗,我现在正在进行微调,估计明天就能完成,在向你请教

------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:55 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

从这看的话 是先训练出自己的模型 再进行test   然后  路径那 使用相对路径  ------------------ 原始邮件 ------------------ 发件人: "jingyuanli001/RFR-Inpainting" @.>; 发送时间: 2021年11月20日(星期六) 晚上9:48 @.>; @.**@.>; 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

 python run.py --test

还有
 python run.py --data_root D:/Datasets/celebA/img/img_align_celeba --mask_root D:/Datasets/masks/irregular_mask --model_path checkpoints/g_10000.pth --test --mask_mode 2

------------------ 原始邮件 ------------------
发件人: "jingyuanli001/RFR-Inpainting" @.>;
发送时间: 2021年11月20日(星期六) 晚上9:47
@.>;
@.**@.>;
主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

你哪两个命令?

------------------ 原始邮件 ------------------
发件人: "jingyuanli001/RFR-Inpainting" @.>;
发送时间: 2021年11月20日(星期六) 晚上9:40
@.>;
@.**@.>;
主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)

首先谢谢你的回复,这是我之前测试时的两个命令,但是都失败了,我需要在这基础之上加什么吗    

------------------ 原始邮件 ------------------    
发件人:                                                                                                                        "jingyuanli001/RFR-Inpainting"                                                                                    ***@***.***>;    
发送时间: 2021年11月20日(星期六) 晚上9:33    
***@***.***>;    
***@***.******@***.***>;    
主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)    

 进行微调和test的时候  分别加上default=True,然后训练的时候这份代码我记得是在别人模型基础上进行训练的'--model_path', type=str, default="pretrainedModel/g_640000.pth"  即先调用别人的模型 再训练     

 ------------------ 原始邮件 ------------------     
 发件人:                                                                                                                        "jingyuanli001/RFR-Inpainting"                                                                                    ***@***.***>;     
 发送时间: 2021年11月20日(星期六) 晚上9:23     
 ***@***.***>;     
 ***@***.******@***.***>;     
 主题: Re: [jingyuanli001/RFR-Inpainting] How can I change the code to fix images of other sizes? For example: 1024*768 (Issue #59)     

 我按着readme里的命令进行测试,发现运行不成功,想问问你,你在训练完成以后都进行了什么操作,微调?怎么进行测试啊     

 —     
 You are receiving this because you authored the thread.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
 Triage notifications on the go with GitHub Mobile for iOS or Android.     
—    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    
Triage notifications on the go with GitHub Mobile for iOS or Android.    


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

ShiKangdi commented 2 years ago

你好,咱们能加一个联系方式吗,我现在正在进行微调,估计明天就能完成,在向你请教

你好,请问你在CelebA上训练的时候Crop了吗?