Skip to content
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

Restoration on Mac M1 ? #101

Open
AstroBB opened this issue Aug 21, 2022 · 2 comments
Open

Restoration on Mac M1 ? #101

AstroBB opened this issue Aug 21, 2022 · 2 comments

Comments

@AstroBB
Copy link

AstroBB commented Aug 21, 2022

Hi,
I'm using deep prior in astronomy processing. This is an incredible process to remove random noise without introducing artefacts like a trained algorithm would do.
I always have out of memory problems and Large GPU are too expansive.
I have a very nice 32Gb GPU on my Mac M1 Max.
Would anyone can give me some help to drop CUDA and make it work on a Mac M1 ?

One of my image that used deep prior was featured in NASA's Astronomy Picture Of the Day !
https://apod.nasa.gov/apod/ap191127.html

@zcy5417
Copy link

zcy5417 commented Aug 21, 2022 via email

@HaraldKorneliussen
Copy link

I don't think Pytorch has support for newer Apple hardware yet, but tensorflow has.

Remember, this is a very small project, and what it does is as simple as it is brilliant. It's really just demonstration code for a paper. If you want to play with deep image priors, it's often easier to just reimplement it yourself than to try to adapt the code in this repository.

So I suggest you get a version of tensorflow that works with your hardware (remember to put it in a conda environment or similar so it doesn't mess with your native python install), and just be bold and write the code yourself.

For noise removal, it can be as simple as setting up a neural net that outputs images, and instead of training it on a big dataset of images, you train it over and over on the one image, optionally with a little different gaussian noise added each time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants