microsoft / CLAP

Learning audio concepts from natural language supervision
MIT License
455 stars 35 forks source link

use_cuda questions #11

Closed xuyaoxun closed 1 year ago

xuyaoxun commented 1 year ago

Hi, I noticed that when I use, clap_model = CLAPWrapper(weights_path, use_cuda=False), it works fine, when I change to usecuda=True, it reports an error, but a cuda environment exists on my machine, torch.cuda.is available() also shows true.By the way, I would like to ask how to solve the problem of this warning, that is, how to set the max_length image image

xuyaoxun commented 1 year ago

image

soham97 commented 1 year ago

Hi @xuyaoxun, I have pushed a change that fixes the cuda issue. With respect to the warning, the max_length is not user-specified and the warning can be ignored.

xuyaoxun commented 1 year ago

Hi, thanks a lot. It does work, appreciate your work.