SimDeblur icon indicating copy to clipboard operation
SimDeblur copied to clipboard

Colab Questions

Open noobtoob4lyfe opened this issue 2 years ago • 4 comments

Thank you so much for sharing the this! Forgive me, because I'm not super technical but I was hoping you could walk me through how to use the Colab notebook to test my own image sequence. When I "run all" in Colab it shows a single output comparison jpeg. Does it save the entire deblurred image sequence anywhere? All I can see are the input images when I search the folder structure. How would I deblur and entire image sequence and save the resulting images? Thanks in advance!

noobtoob4lyfe avatar Sep 15 '21 19:09 noobtoob4lyfe

If you want to output all frames, you should add a FOR-LOOP in Sec.4 of the Colab Notebook. Just like the following:

for i, batch_data in enumerate(frames_data): 
    out = model(batch_data["input_frames"].unsqueeze(0).cuda())
    out = out.clamp(0, 1)
    # save the output
    ...

You also need to implement saving the output frames.

ljzycmd avatar Sep 17 '21 10:09 ljzycmd

Awesome! Thanks so much for your help. So is that what the full text of Sec.4 should look like, or would that snippet be pasted in after a certain line in the existing text. How would one implement the "saving the output frames" aspect of this? Also what would I change if I want to try the ESTRNN model instead of the DBN model? Thanks again!

noobtoob4lyfe avatar Sep 18 '21 22:09 noobtoob4lyfe

I would also like to know how to save the output frames.

robbsaber avatar Feb 19 '22 20:02 robbsaber

Yep, I will update the notebook with saving the output frames soon!

ljzycmd avatar Feb 20 '22 06:02 ljzycmd