eps696 / aphantasia

CLIP + FFT/DWT/RGB = text to image/video

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specify GPU

CerebralSeed opened this issue · comments

Could something be added to specify the GPU to use?

CUDA_VISIBLE_DEVICES environment variable perfectly controls this.
you can set it from command line: set CUDA_VISIBLE_DEVICES=0
or from python itself:

import os
os.environ['CUDA_VISIBLE_DEVICES']='0'

Okay, got it. I will give that a try.