podman build -t realesrgan .
mkdir img
mkdir img/input
mkdir img/output
- Put image to img/input
podman run -it --rm -v ./img:/img:Z realesrgan
Created
November 17, 2022 00:24
-
-
Save konradmb/438394eddb7e0b440db6a527ea067fa3 to your computer and use it in GitHub Desktop.
RealESRGAN CPU podman/docker test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:22.04 | |
RUN apt update | |
RUN apt install python3 python3-pip -y | |
RUN pip3 install realesrgan | |
RUN apt install -y libgl1 libglib2.0-0 | |
RUN apt install wget -y | |
RUN wget https://github.com/xinntao/Real-ESRGAN/raw/v0.3.0/inference_realesrgan.py | |
RUN chmod +x inference_realesrgan.py | |
RUN python3 inference_realesrgan.py | |
ENTRYPOINT python3 inference_realesrgan.py -i /img/input -o /img/output --fp32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment