Difference between revisions of "Porting/PyTorch"
Jump to navigation
Jump to search
JeremyRand (talk | contribs) (Open-CE is distro-independent) |
JeremyRand (talk | contribs) (→Binaries: Fix "git clone" typo) |
||
Line 14: | Line 14: | ||
conda install pip | conda install pip | ||
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true pip install basicsr facexlib gfpgan | GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true pip install basicsr facexlib gfpgan | ||
− | clone https://github.com/xinntao/Real-ESRGAN.git | + | git clone https://github.com/xinntao/Real-ESRGAN.git |
cd Real-ESRGAN | cd Real-ESRGAN | ||
pip install -r requirements.txt | pip install -r requirements.txt |
Revision as of 21:44, 19 May 2023
Binaries
Open Cognitive Environment (Open-CE) provides distro-independent ppc64le binaries of PyTorch and related packages. Example workflow to install PyTorch and Real-ESRGAN on Fedora 38 ppc64le:
sudo dnf install python3.10 sudo dnf install conda conda create --name pytorch python=3.10 # Close and re-open terminal conda activate pytorch conda install -c https://ftp.osuosl.org/pub/open-ce/current/ pytorch-cpu torchvision-cpu py-opencv conda install -c numba llvmlite conda install -c conda-forge grpcio conda install -c conda-forge libstdcxx-ng conda install pip GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true pip install basicsr facexlib gfpgan git clone https://github.com/xinntao/Real-ESRGAN.git cd Real-ESRGAN pip install -r requirements.txt python setup.py develop # Real-ESRGAN is now installed.