-
Notifications
You must be signed in to change notification settings - Fork 37
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
generate_data() is called every 10th iteration and - single entry validation set #2
Comments
Both observations are true. I did try generating data in every iteration, but it made no/very little difference at some performance cost. Now that you mention it I'm not sure if this made it into the article. Regardless, you can try generating at each iteration and see what happens. Regarding the second point, the numerical values were indeed only evaluated for the image displayed in the article (the shepp-logan phantom). Notably, this is not a "random sample" from the prior but a rather special case. I picked it to show that the method can generalize quite well. This should be covered in the article. |
Very interesting. Long time since I ran this code, does it work well if you call it every 10:th iteration? |
Did you ever come through to running the original code? Did it work? |
Sorry for the late response. I should mention that I was trying to run the code on CPU so maybe that is why I see this issue. If that is the case it may also explain why the original code didn't work for me. I haven't got a chance to install ODL extensions to run it on GPU yet. |
Running source code does not get the results in the article,What is the cause? I hope you can give me some advice. |
Which file are you running to get those results? I've tried the current master on my machine and I get reasonable results. I also need to know e.g. how many iterations you ran. Also, what version of ODL are you using? |
Thank you for your reply.I running the learned_primal_dual.py and.learned_chambolle_pock.py The screenshot is the result of running the latter, and I stopped training because it collapsed at about 3000 steps. I'm sorry I didn't save the screenshots of loss and psnr. |
Sadly a tensorflow bug that hasn't been fixed in half a year (tensorflow/tensorflow#16864) is causing this code to run extremely slowly on my machine, so it's hard for me to debug. Are you running on master? What version of ODL are you using? |
yes ,odl-1.0.0.dev0 |
Are you getting the same problem with learned_primal_dual.py? E.g. can you show a loss curve |
What implementation of the raytransform are you using? E.g.
|
I would very strongly recommend you install astra, try
|
What problem did you encounter? I'm literally just running the code in this repo. |
It frustrates me that I can't reproduce your results using source code. |
training and testing losses (blue is train, orange is test) |
Oh, So the code you use is different from mine? |
The "learned_chambolle_pock.py" file includes both training and testing losses. See e.g. learned_primal_dual/ellipses/learned_chambolle_pock.py Lines 152 to 154 in 64901e8
|
Well, thank you |
It's very hard for me to debug remotely, but my best guess right now is that you need astra. Except for that, make sure that you have downloaded the laster version of this repo and ODL (e.g. re-install them). Finally, what TF version do you run? |
Ok, thank you very much for your patient answer. I will try again. TF:(1.8.0) |
It's great to get feedback. I try to make sure the code is runnable by everyone. please report any progress. |
Did you re-install this library and ODL as advised? Did you install ASTRA? If you do not follow my advice it's hard to help. My GPU is currently quite busy, but my training curve is a rather smooth convergence towards ~37 PSNR, nothing like what you are seeing. |
I also meet similar curve as @ChengV0 meets when run I think astra-toolbox is faster than skimage, however, it will not influence the results too much. For example: (addition: oh no!!! it will infulence the results!!!!! However, I did not know why? --- Using astra can get the results as author @adler-j 's learning curve. And using skimage get learning curve as ChengV0 meets. )
psnr of astra: 34.125 |
@adler-j I have some questions(not open new issue for convience):
Thank you @adler-j ! |
Why do you generate new training data pairs just every 10th iteration? For instance here.
Also this line suggests that the validation error is only being evaluated over a single data pair. So technically you validation set contains a single data pair.
The text was updated successfully, but these errors were encountered: