Skip to content

Instantly share code, notes, and snippets.

@konradmb
Created November 17, 2022 00:24
Show Gist options
  • Save konradmb/438394eddb7e0b440db6a527ea067fa3 to your computer and use it in GitHub Desktop.
Save konradmb/438394eddb7e0b440db6a527ea067fa3 to your computer and use it in GitHub Desktop.
RealESRGAN CPU podman/docker test
  1. podman build -t realesrgan .
  2. mkdir img
  3. mkdir img/input
  4. mkdir img/output
  5. Put image to img/input
  6. podman run -it --rm -v ./img:/img:Z realesrgan
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