# Configuration for Cog ⚙️ # Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md build: # set to true if your model requires a GPU gpu: true cuda: "11.8" # a list of ubuntu apt packages to install system_packages: - "libgl1-mesa-glx" - "libglib2.0-0" - "ffmpeg" - "libsm6" - "libxext6" # python version in the form '3.11' or '3.11.4' python_version: "3.10" # a list of packages in the format == python_packages: - "onnxruntime-gpu" - "insightface==0.7.3" - "lpips" - "opencv-python" - "torchsde" - "einops" - "transformers>=4.25.1" - "safetensors>=0.3.0" - "aiohttp" - "pyyaml" - "Pillow" - "scipy" - "tqdm" - "psutil" - "segment-anything" - "scikit-image" - "piexif" - "opencv-python-headless" - "GitPython" - "matrix-client==0.4.0" - "huggingface-hub>0.20" - "numpy" - "addict" - "future" - "lmdb" - "requests" - "tb-nightly" - "yapf" - "gdown" - "smmap" - "ultralytics==8.1.17" - "diffusers" # commands run after the environment is setup run: - "export OMP_NUM_THREADS=1" - "export KMP_AFFINITY=none" - "export ONNX_MODE=cuda" - "pip uninstall torch torchvision -y" - "pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118" - "echo another command if needed" # predict.py defines how predictions are run on your model predict: "insight_face_enhance_main.py:Predictor"