AIGC-Audio / AudioGPT

AudioGPT: Understanding and Generating Speech, Music, Sound, and Talking Head

Home Page:https://huggingface.co/spaces/AIGC-Audio/AudioGPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

zhaowtVincent opened this issue · comments

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?

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

commented

mark

Hi, pls try the latest version!

Install ldm.util using pip

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.