imaginAIry/imaginairy/__init__.py
2024-03-15 11:32:24 -07:00

9 lines
256 B
Python

"""Pythonic AI generation of images and videos"""
import os
# tells pytorch to allow MPS usage (for Mac M1 compatibility)
os.putenv("PYTORCH_ENABLE_MPS_FALLBACK", "1")
# use more memory than we should
os.putenv("PYTORCH_MPS_HIGH_WATERMARK_RATIO", "0.0")