Ouwen / MimickNet

Matching clinical-grade ultrasound post-processing without the hassle.
https://arxiv.org/abs/1908.05782
Apache License 2.0
59 stars 14 forks source link

How to use mimicknet ? #18

Closed Jaycee0602 closed 1 year ago

Jaycee0602 commented 4 years ago

Hello, how can I improve the resolution of single photos by using the pre-training model? Looking forward to your reply.Thanks.

Ouwen commented 4 years ago

Hey Jay, check out this colab notebook: https://colab.research.google.com/drive/1R_ARqpWoiHcUQWg1Fxwyx-ZkLi0IZ5qs

It'll show you how to use the model to post-process a couple ultrasound images

Jaycee0602 commented 4 years ago

Hey Jay, check out this colab notebook: https://colab.research.google.com/drive/1R_ARqpWoiHcUQWg1Fxwyx-ZkLi0IZ5qs

It'll show you how to use the model to post-process a couple ultrasound images

Thanks for your reply. I have run the example in colab. Now I want to use mimicknet to improve a low-resolution image of myself. Is there any way to help me? Thank you.Looking forward to your reply.

Ouwen commented 4 years ago

This trained MimickNet is meant to be run on ultrasound images, not natural images.

Jaycee0602 commented 4 years ago

I'm sorry that you may have misunderstood. I also wanted to enhance the ultrasound image, but the colab example generated a random image, so I asked if mimicknet could be used to enhance another ultrasound image.Thanks for your reply.

Ouwen commented 4 years ago

Right, the colab loops through a dataset of images and runs them through keras. If you want to run your own image you can run them through as a numpy array.

So if you have a 512x512 ultrasound image, you need to turn it into a 1x512x512x1 shape, and run model.predict

Ouwen commented 1 year ago

Closing this issue. The latest colab should show you how to use the model!