代码拉取完成,页面将自动刷新
import launch, torch
if not launch.is_installed("cupy"):
cuda_version = int(round(float(torch.version.cuda)*10))
if cuda_version <= 102:
launch.run_pip("install cupy-cuda102", "requirements for FastBlend (cupy)")
elif cuda_version <= 110:
launch.run_pip("install cupy-cuda110", "requirements for FastBlend (cupy)")
elif cuda_version <= 111:
launch.run_pip("install cupy-cuda111", "requirements for FastBlend (cupy)")
elif cuda_version <= 118:
launch.run_pip("install cupy-cuda11x", "requirements for FastBlend (cupy)")
else:
launch.run_pip("install cupy-cuda12x", "requirements for FastBlend (cupy)")
if not launch.is_installed("imageio-ffmpeg"):
launch.run_pip("install imageio imageio[ffmpeg]", "requirements for FastBlend (imageio)")
if not launch.is_installed("cv2") and not launch.is_installed("opencv-python-headless"):
launch.run_pip("install opencv-python-headless", "requirements for FastBlend (opencv-python-headless)")
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。