Closed afung-git closed 4 years ago
I've just added a single-image inference script in commit https://github.com/anibali/margipose/commit/f6154cd8c338546d3c5fbb846f2f7513ce578f77. All it does is run the specified image through a MargiPose model and show the normalised skeleton prediction in a GUI. Here's an example invocation of the new command:
./run.sh margipose infer --model margipose-mpi3d.pth --image man_running.jpg
Here is the man_running.jpg
image I tested it with:
The result should look something like this:
Please note that there are some caveats to this script.
can i run it without any docker installation?
eg. infer --model margipose-mpi3d.pth --image man_running.jpg
@gearmlai Yes, as long as you have MargiPose and all of the dependencies set up correctly. Note that the command in that case would be:
margipose infer --model margipose-mpi3d.pth --image man_running.jpg
Hi Aiden,
I am new to pytorch and would like to play around with the margipose code. Given the pre-trained model that you provide. How can I use it to make an inference on a single image? Any insight into the script that I can use would be really helpful!!
Thanks!