DocDiff icon indicating copy to clipboard operation
DocDiff copied to clipboard

Issue with inference

Open inamdarmihir opened this issue 1 year ago • 4 comments

Hi, can you help me out with the inference code for super resolution of my test images, I am trying to implement your inference.py in Colab, will it work there, any particular comments or suggestions to implement this? @Royalvice @eltociear Thanks.

inamdarmihir avatar May 31 '24 08:05 inamdarmihir

Hi, you need to replace the network structure of DocDiff with some classical super-resolution network structures (such as adding more upsampling modules or attention modules), and then train it on your own document dataset.

Royalvice avatar Jun 03 '24 08:06 Royalvice

Hi, I just wish to use it for deblurring or regeneration on (5-10) few test examples only at inference, I don't wish to retrain the network completely. Is that possible? Thanks and Regards, Mihir Inamdar

On Mon, Jun 3, 2024 at 1:34 PM Zongyuan Yang @.***> wrote:

Hi, you need to replace the network structure of DocDiff with some classical super-resolution network structures (such as adding more upsampling modules or attention modules), and then train it on your own document dataset.

— Reply to this email directly, view it on GitHub https://github.com/Royalvice/DocDiff/issues/30#issuecomment-2144534032, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJME6RKPD5JPKFTU6RBHGH3ZFQPRVAVCNFSM6AAAAABISLXNLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUGUZTIMBTGI . You are receiving this because you authored the thread.Message ID: @.***>

inamdarmihir avatar Jun 03 '24 08:06 inamdarmihir

If possible, could you share some samples?

Royalvice avatar Jun 03 '24 08:06 Royalvice

Hi,

If you could run this with these example images(attached below one you can save in the demo folder of the cloned repo, as gt_image, and other as the input_image which is low_res) in colab, and check if it works and the final cell I wish to save the super res. image.

I am using the DocDiff_inference.ipynb https://drive.google.com/file/d/1LrdeUANyaWmSzbL9gDvOz8rwbwT4tPZ-/view?usp=sharing file which is shared in the repo with some edits. Please do check, and let me know as soon as possible.

Thank you Regards, Mihir Inamdar

On Mon, Jun 3, 2024 at 1:45 PM Zongyuan Yang @.***> wrote:

If possible, could you share some samples?

— Reply to this email directly, view it on GitHub https://github.com/Royalvice/DocDiff/issues/30#issuecomment-2144557249, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJME6ROUHCMKGDIUG7RMICDZFQQYXAVCNFSM6AAAAABISLXNLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUGU2TOMRUHE . You are receiving this because you authored the thread.Message ID: @.***>

inamdarmihir avatar Jun 03 '24 09:06 inamdarmihir