Open luoan7248 opened 2 months ago
How do I specify a graphics card for inference? Setting os.environ["CUDA_VISIBLE_DEVICES"] = '6' didn't work.
you can use CLP
os.environ["CUDA_VISIBLE_DEVICES"] = '6' works. Please make sure to run this code before import torch and import diffsynth.
os.environ["CUDA_VISIBLE_DEVICES"] = '6'
import torch
import diffsynth
How do I specify a graphics card for inference? Setting os.environ["CUDA_VISIBLE_DEVICES"] = '6' didn't work.