BBillot / SynthSR

A framework for joint super-resolution and image synthesis, without requiring real training data
Apache License 2.0
143 stars 23 forks source link

How to run SythSR on python #15

Closed sw3866 closed 8 months ago

sw3866 commented 8 months ago

Hello SythSR team,

I am also trying to run SythSR by python on My Macbook Air(M1). I have newest version of tensorflow-macos and -metal and Python 3.11.5 on my laptop, but I don't have CUDA and Cudnn on M1 APPLE. Can I still run SythSR(One line Code) on my CPU instead of using a compatible GPU? The error I get is about illegal hardware instruction.

best, Siyan Wen

BBillot commented 8 months ago

As I suggested in issue #14, you can run on the CPU by using the flag --cpu in the command line. The "illegal hardware instruction" usually means you run out of CPU RAM, which is not surprising for laptops. try enforcing --threads 1, but if you still have this error I'm afraid you will need to use another machine.

best benjamin