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

code for inference on custom images #8

Open
francescobaraldi opened this issue Apr 17, 2023 · 5 comments
Open

code for inference on custom images #8

francescobaraldi opened this issue Apr 17, 2023 · 5 comments

Comments

@francescobaraldi
Copy link

is there the code to run the model on custom images or video?

@yangjie-cv
Copy link
Contributor

Thanks for your interest. We have uploaded the inference scripts for single-image virtualization. For the videos, you need to do inference frame by frame.

@julkaztwittera
Copy link

Could you please explain how does this script work? I have put an image in Inference_Path and annotations from Coco2017 dataset to EDPOSE_COCO_PATH. I tried to run the script Virtualization via COCO Keypoints Format, but I got the following error:

  File "/home/user/ED-Pose/util/misc.py", line 255, in log_every
    header, total_time_str, total_time / len(iterable)))
ZeroDivisionError: float division by zero

and the process hangs infinitely.

@yangjie-cv
Copy link
Contributor

You need use the command: export Inference_Path=/path/to/your/inference_dir

@julkaztwittera
Copy link

julkaztwittera commented Oct 10, 2023

I have already done it. I also downloaded COCO annotations and put them in EDPOSE_COCO_PATH, but it doesn't work.

Why does inference code on one image need the whole COCO dataset...?

@julkaztwittera
Copy link

Well, is there a simple way to just load the model and infer on a single image without using the dataloader? I tried to do this on a torch tensor, but there were some errors.

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

3 participants