transformers diffusers torch accelerate gradio opencv-python-headless tqdm