AIGC-Audio / AudioGPT

AudioGPT: Understanding and Generating Speech, Music, Sound, and Talking Head
https://huggingface.co/spaces/AIGC-Audio/AudioGPT
Other
10.05k stars 863 forks source link

ModuleNotFoundError: No module named 'ldm.util'; 'ldm' is not a package #30

Open zhaowtVincent opened 1 year ago

zhaowtVincent commented 1 year ago

When I was installing this project, I reported an error message: (audiogpt) administrator@zhaowt:~/AudioGPT$ python audio-chatgpt.py [2023-04-27 09:31:28] audio-chatgpt.py - - - - - - - - - - - - - - - - - - - - - eprint(line:60) :: Error when calling Cognitive Face API: status_code: 401 code: 401 message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

[2023-04-27 09:31:28] audio-chatgpt.py - - - - - - - - - - - - - - - - - - - - - eprint(line:60) :: img_url:https://raw.githubusercontent.com/Microsoft/Cognitive-Face-Windows/master/Data/detection1.jpg [2023-04-27 09:31:29] audio-chatgpt.py - - - - - - - - - - - - - - - - - - - - - eprint(line:60) :: Error when calling Cognitive Face API: status_code: 401 code: 401 message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

[2023-04-27 09:31:29] audio-chatgpt.py - - - - - - - - - - - - - - - - - - - - - eprint(line:60) :: img_url:/data1/mingmingzhao/label/data_sets_teacher_1w/47017613_1510574400_out-video-jzc70f41fa6f7145b4b66738f81f082b65_f_1510574403268_t_1510575931221.flv_0001.jpg [] Traceback (most recent call last): File "audio-chatgpt.py", line 26, in from ldm.util import instantiate_from_config ModuleNotFoundError: No module named 'ldm.util'; 'ldm' is not a package

​ Do any friends know how to solve this problem?

barber5 commented 1 year ago

Same problem here. Let me know if you find a fix

MHao008 commented 1 year ago

mark

Rongjiehuang commented 1 year ago

Hi, pls try the latest version!

VedantAdke96 commented 1 year ago

Install ldm.util using pip

murali1999-tech commented 1 year ago

It seems like there is an issue with accessing the Cognitive Face API, and also a missing module called ldm.util.

The error message indicates that the subscription key provided for the Cognitive Face API might be invalid or the API endpoint is wrong. Please make sure that you have provided a valid subscription key for the API and the regional API endpoint is correct for your resource. You can check the documentation for the API to get more information on the correct endpoint.

Regarding the missing module ldm.util, it seems like the module is not installed or not available in your current working directory. You need to make sure that the module is installed and available in your working directory. You can try installing the module using pip or any other package manager you are using for this project.