Stable Diffusion Set Python Intersection Function