Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running default command inference.py #58

Open
Dhatri2012 opened this issue May 4, 2024 · 1 comment
Open

Error running default command inference.py #58

Dhatri2012 opened this issue May 4, 2024 · 1 comment

Comments

@Dhatri2012
Copy link

Dhatri2012 commented May 4, 2024

Hi all,
Getting below error while running the command mentioned in the usage . Please help !!

Command
python scripts/inference.py --plms --outdir results --config configs/v1.yaml --ckpt checkpoints/model.ckpt --image_path examples/image/example_1.png --mask_path examples/mask/example_1.png --reference_path examples/reference/example_1.jpg --seed 321 --scale 5

Error
/Paint-by-Example/scripts/inference.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.

[2024-05-04 18:01:36] /paintByEx/Paint-by-Example/scripts/inference.py - - - - - - - - - - - - - - - - - - - - - eprint(line:60) :: img_url:https://raw.githubusercontent.com/Microsoft/Cognitive-Face-Windows/master/Data/detection1.jpg
[2024-05-04 18:01:37] /paintByEx/Paint-by-Example/scripts/inference.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.

[2024-05-04 18:01:37] /paintByEx/Paint-by-Example/scripts/inference.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 "//paintByEx/Paint-by-Example/scripts/inference.py", line 17, in
from ldm.util import instantiate_from_config
ModuleNotFoundError: No module named 'ldm.util'; 'ldm' is not a package

Note:
Installed already version ldm==0.1.3

Queries
why it invoking this image detection1.jpg
what subscription key we need to provide "Access denied due to invalid subscription key or"

@Dhatri2012
Copy link
Author

please help us on the queries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant