-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Training data with LR and HR #17
Comments
Hi, in our code, we only load the HR files and the LR files are generated on the fly. Best regards. |
Thanks. |
Do you have any suggestions on how to load the LR data? I tried to use loadHR() with different tar_size to load my LR images inside frvsr_gpu_data_loader() and replaced the tf_data_gaussDownby4(curHR, 1.5) with curLR, curLR = LR_images[frame_t] , but the results is weird.
Thank you |
LR should be loaded at the same time with the HR and they should be preprocessed in the same way consistently. Otherwise, you will get randomly shuffled LR and HR that mismatches. Hope this file is helpful (not tested!): Since LR is pre-generated, it is important that the relationship between LR and HR is invariant to data augmentation methods such as flipping and cropping. |
I really appreciated that. It works for me with some modification. Have a nice day, |
@zzhan127 Hello! I am using this code. Can you tell me where did you make the change? Thanks. |
Sorry, my code after modification is not available to me now. But I
believe some minor modification is needed after you set the correct path.
Jie Cai <notifications@github.com> 于 2019年11月7日周四 下午1:50写道:
… @zzhan127 <https://github.com/zzhan127> Hello! I am using this code. Can
you tell me where did you make the change? Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17?email_source=notifications&email_token=AGF5GYLU35INRW5NQ6CWUOLQSRPNZA5CNFSM4H4IGFQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDNNPFQ#issuecomment-551212950>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGF5GYLKMODW3ZV3ZCVLA4DQSRPNZANCNFSM4H4IGFQQ>
.
|
@zzhan127 @RachelCmy so basically in the code we don't have to call |
Hey @zzhan127 @RachelCmy could you please answer me? I have some questions about this that I would like to discuss with the author of the code |
Hi, I don't have any problem using it. This model takes several days for
training, the results looks reasonable to me after 3 days of training.
…On Sat, Oct 24, 2020 at 5:20 AM Alessia Paccagnella < ***@***.***> wrote:
Hey @zzhan127 <https://github.com/zzhan127>
can I ask you if it worked for you? I am using that script, and it doesn't
give me any error, but once I train with my own images I obtain a super
strange result as output. Did you have the chance to retrain it and then
test it to see if it worked?
@RachelCmy <https://github.com/RachelCmy> could you please answer me? I
have some questions about this that I would like to discuss with the author
of the code
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGF5GYJCZ7TMNSI3FN5SPXLSMKL33ANCNFSM4H4IGFQQ>
.
|
@zzhan127 Thank you very much for your reply. In your case, how did you obtained your own pairs of HR and LR images? |
I used some medical imaging data for training. I also changed the images
name to col_high_0000 for HR images and col_low_0000 for LR images.
On Sun, Oct 25, 2020 at 4:50 PM Alessia Paccagnella <
notifications@github.com> wrote:
… Hi, I don't have any problem using it. This model takes several days for
training, the results looks reasonable to me after 3 days of training.
… <#m_-3854804937577913515_>
On Sat, Oct 24, 2020 at 5:20 AM Alessia Paccagnella < *@*.***> wrote: Hey
@zzhan127 <https://github.com/zzhan127> https://github.com/zzhan127 can I
ask you if it worked for you? I am using that script, and it doesn't give
me any error, but once I train with my own images I obtain a super strange
result as output. Did you have the chance to retrain it and then test it to
see if it worked? @RachelCmy <https://github.com/RachelCmy>
https://github.com/RachelCmy could you please answer me? I have some
questions about this that I would like to discuss with the author of the
code — You are receiving this because you were mentioned. Reply to this
email directly, view it on GitHub <#17 (comment)
<#17 (comment)>>, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AGF5GYJCZ7TMNSI3FN5SPXLSMKL33ANCNFSM4H4IGFQQ
.
@zzhan127 <https://github.com/zzhan127> Thank you very much for your
reply. In your case, how did you obtained your own pairs of HR and LR
images?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGF5GYOXMF32ZQJBIAXH3W3SMSFSPANCNFSM4H4IGFQQ>
.
|
@zzhan127 thank you very much for your answer, again!
while in the new script, tar_size is only do you have any idea of the reason? |
I am not sure. But Gaussian blur is used to generate LR images in the
original code. And in the new code, since we have the LR images, we don’t
need to use Gaussian blur anymore.
…On Mon, Oct 26, 2020 at 5:17 AM Alessia Paccagnella < ***@***.***> wrote:
@zzhan127 <https://github.com/zzhan127> thank you very much for your
answer, again!
alright, I will try.
Just one last question, that I do not understand. What should tar_size be?
In the original code, they wrote
tar_size = (FLAGS.crop_size * 4 ) + int(1.5 * 3.0) * 2 # crop_size * 4, and Gaussian blur margin
k_w_border = int(1.5 * 3.0)
while in the new script, tar_size is only FLAGS.crop_size * 4
do you have any idea of the reason?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGF5GYKPLWJFK5DF777P4NLSMU5BJANCNFSM4H4IGFQQ>
.
|
@zzhan127 thank you very much for your answers, you were helpful! May I ask one last thing? |
Hello,
I am trying to train the model with my own dataset. Instead of using bicubic, I generated some LR images using my own method. I want to train the model but I cannot find where to put the training LR data.
Thank you!
The text was updated successfully, but these errors were encountered: