IBM / MAX-Image-Resolution-Enhancer

Upscale an image by a factor of 4, while generating photo-realistic details.
https://developer.ibm.com/exchanges/models/all/max-image-resolution-enhancer/
Apache License 2.0
989 stars 162 forks source link

Support Apple Silicon Processor #43

Closed mezhevikin closed 2 years ago

mezhevikin commented 3 years ago

Hi. I try run Enhancer on Mac Book Air M1, but I'm getting an error:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
2021-03-30 14:41:04.891048: F tensorflow/core/platform/cpu_feature_guard.cc:37] The TensorFlow library was compiled to use SSE4.1 instructions, but these aren't available on your machine.
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted
bdwyer2 commented 3 years ago

Hi @mezhevikin

I don't currently have an arm machine to test on but you can try changing line # 17 in the Dockerfile to this: docker pull quay.io/codait/max-base:arm-arm32v7-latest

You may also need to change the tensorflow version in the requirements.txt file if there in not a tensorflow build for your CPU. See this issue for more info https://github.com/IBM/MAX-Object-Detector/issues/72#issuecomment-552678944

bdwyer2 commented 3 years ago

I opened PR #44 to work on this

fharper commented 2 years ago

 See this issue for more info IBM/MAX-Object-Detector#72 (comment)

Unfortunately, TensorFlow still doesn't support M1 chipset (arm64/ARMv8).

fharper commented 2 years ago

@mezhevikin is this fixed? @bdwyer2 PR isn't merged yet.

bdwyer2 commented 2 years ago

Hi @fharper, I am no longer involved with this project. Maybe @kmh4321 can provide an update?