Intel GPU Setup Guide for DeOldify
This guide covers how to set up DeOldify with Intel GPUs (Arc A-Series, Data Center GPU Max Series) using Intel Extension for PyTorch (IPEX).
Prerequisites
- Intel GPU Driver: Latest stable driver for your hardware.
- Anaconda or Miniconda installed.
- Git installed.
- OS: Windows 10/11 or Linux (Ubuntu 22.04 recommended).
Installation Steps
Clone the Repository
git clone https://github.com/thookham/DeOldify.git cd DeOldifyCreate Intel Conda Environment We use a dedicated environment file that installs PyTorch with XPU support and Intel Extension for PyTorch.
conda env create -f environment_intel.ymlActivate Environment
conda activate deoldify_intelDownload Weights Download the pretrained weights and place them in the
models/directory:
Verification
Run the verification script to ensure your Intel GPU is detected:
python verify_refactor.py
If successful, you should see:
Imports successfulDevice detection passedDevice Name: Intel(R) Arc(TM)...(or similar)
Troubleshooting
"XPU not available"
- Ensure you have installed the correct drivers.
- Verify that
intel-extension-for-pytorchis installed:pip list | grep intel - On Windows, ensure you are using the correct oneAPI components if manually installed.
Performance
- First run might be slower due to JIT compilation.
- Ensure you are using the
deoldify_intelenvironment, not the standard one.