# Converting OpenPose for Wolfram Language

**URL:** <https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715>\
**Category:** Staff Picks\
**Tags:** data-science, image-processing, external-interfaces, machine-learning, staff-pick, neural-networks, artificial-intelligence\
**Created:** [September 10, 2019, 9:36pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715 "2019-09-10T21:36:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![okazakikotaro](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/okazakikotaro/32/14323_2.png) [@okazakikotaro](https://community.wolfram.com/u/okazakikotaro)\
**Post date:** [September 10, 2019, 9:36pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/1 "2019-09-10T21:36:49Z")

</div>

Tuseeta-san’s [post](https://community.wolfram.com/groups/-/m/t/1785523) is how to convert a trained model of TensorFlow to Mathematica. Converting trained models from a language other than Mathematica to Mathematica is very beneficial to Mathematica users. So I’ll show how to convert a trained model of PyTorch to Mathematica along with Tuseeta-san’s post.

 ![00.jpg](https://global.discourse-cdn.com/wolfram/original/2X/0/0c378f63a989d6a054d22656a0697c1f30ba620a.jpeg)

## Step 1: Figure out the architecture

The [model](https://arxiv.org/pdf/1611.08050.pdf) to be converted is Pose Estimation that detects the human skeleton (body parts and their connections) from an image. It’s called OpenPose.The model consists of Feature map that extracts image features and six Stage maps.  
Feature map extracts image features from an input image(size:368\*368). Each Stage map has two-branch, the first branch predicts confidence and the second predicts PAFs?Part Affinity Fields), along with the image feature .Two-branch are concatenated for next stage.

## Step 2: Coding it in Mathematica

**Feature map**

The Feature map consists of the first 23 layers of VGG-19, followed by 2 sets of Convolution and Ramp.

Extract the first 23 layers of VGG-19.

```
vgg19 = NetModel["VGG-19 Trained on ImageNet Competition Data"];
vgg19sub = Take[vgg19, {1, 23}];

```

Change Encoder.

```
enc = NetExtract[vgg19, "Input"];
enc = NetReplacePart[
   enc, {"ImageSize" -> {368, 368}, 
    "VarianceImage" -> {0.229, 0.224, 0.225}, 
    "MeanImage" -> {0.485, 0.456, 0.406}}];
featurefirst = NetReplacePart[vgg19sub, "Input" -> enc];

```

Add Convolution and Ramp.

```
feature = 
  NetAppend[
   featurefirst, {"convadd1" -> 
     ConvolutionLayer[256, 3, "Stride" -> 1, "PaddingSize" -> 1], 
    "reluadd1" -> Ramp,
    "convadd2" -> 
     ConvolutionLayer[128, 3, "Stride" -> 1, "PaddingSize" -> 1], 
    "reluadd2" -> Ramp}];

```

**Stage map**

Each Stage map consists only of Convolutions and Ramps.

Stage 1: The differences between two branches is that the last output channel number is 38 or 19.

```
blk11 = NetChain[{
    ConvolutionLayer[128, 3, "Stride" -> 1, "PaddingSize" -> 1], Ramp,
    ConvolutionLayer[128, 3, "Stride" -> 1, "PaddingSize" -> 1], Ramp,
    ConvolutionLayer[128, 3, "Stride" -> 1, "PaddingSize" -> 1], Ramp,
    ConvolutionLayer[512, 1, "Stride" -> 1, "PaddingSize" -> 0], Ramp,
    ConvolutionLayer[38, 1, "Stride" -> 1, "PaddingSize" -> 0]}];
blk12 = NetChain[{
    ConvolutionLayer[128, 3, "Stride" -> 1, "PaddingSize" -> 1], Ramp,
    ConvolutionLayer[128, 3, "Stride" -> 1, "PaddingSize" -> 1], Ramp,
    ConvolutionLayer[128, 3, "Stride" -> 1, "PaddingSize" -> 1], Ramp,
    ConvolutionLayer[512, 1, "Stride" -> 1, "PaddingSize" -> 0], Ramp,
    ConvolutionLayer[19, 1, "Stride" -> 1, "PaddingSize" -> 0]}];

```

Stage 2?6: The difference between Stage1 and Stage2?6 is the kinds and the numbers of layers.

```
blkx1 = NetChain[{
    ConvolutionLayer[128, 7, "Stride" -> 1, "PaddingSize" -> 3], Ramp,
    ConvolutionLayer[128, 7, "Stride" -> 1, "PaddingSize" -> 3], Ramp,
    ConvolutionLayer[128, 7, "Stride" -> 1, "PaddingSize" -> 3], Ramp,
    ConvolutionLayer[128, 7, "Stride" -> 1, "PaddingSize" -> 3], Ramp,
    ConvolutionLayer[128, 7, "Stride" -> 1, "PaddingSize" -> 3], Ramp,
    ConvolutionLayer[128, 1, "Stride" -> 1, "PaddingSize" -> 0], Ramp,
    ConvolutionLayer[38, 1, "Stride" -> 1, "PaddingSize" -> 0]}];
blkx2 = NetChain[{
    ConvolutionLayer[128, 7, "Stride" -> 1, "PaddingSize" -> 3], Ramp,
    ConvolutionLayer[128, 7, "Stride" -> 1, "PaddingSize" -> 3], Ramp,
    ConvolutionLayer[128, 7, "Stride" -> 1, "PaddingSize" -> 3], Ramp,
    ConvolutionLayer[128, 7, "Stride" -> 1, "PaddingSize" -> 3], Ramp,
    ConvolutionLayer[128, 7, "Stride" -> 1, "PaddingSize" -> 3], Ramp,
    ConvolutionLayer[128, 1, "Stride" -> 1, "PaddingSize" -> 0], Ramp,
    ConvolutionLayer[19, 1, "Stride" -> 1, "PaddingSize" -> 0]}];

```

Finally, create OpenPose.

```
openpose = NetGraph[{
   "feature" -> feature,(*feature*)
   "blk11" -> blk11, "blk12" -> blk12,(*stage 1*)
   "blk21" -> blkx1, "blk22" -> blkx2,(*stage 2*)
   "cat12" -> CatenateLayer[],
   "blk31" -> blkx1, "blk32" -> blkx2,(*stage 3*)
   "cat23" -> CatenateLayer[],
   "blk41" -> blkx1, "blk42" -> blkx2,(*stage 4*)
   "cat34" -> CatenateLayer[],
   "blk51" -> blkx1, "blk52" -> blkx2,(*stage 5*)
   "cat45" -> CatenateLayer[],
   "blk61" -> blkx1, "blk62" -> blkx2,(*stage 6*)
   "cat56" -> CatenateLayer[]
   },
  {"feature" -> "blk11", "feature" -> "blk12",(*stage 1*)
   {"blk11", "blk12", "feature"} -> "cat12",(*stage 2*)
   "cat12" -> "blk21", "cat12" -> "blk22",
   {"blk21", "blk22", "feature"} -> "cat23",(*stage 3*)
   "cat23" -> "blk31", "cat23" -> "blk32",
   {"blk31", "blk32", "feature"} -> "cat34",(*stage 4*)
   "cat34" -> "blk41", "cat34" -> "blk42",
   {"blk41", "blk42", "feature"} -> "cat45",(*stage 5*)
   "cat45" -> "blk51", "cat45" -> "blk52",
   {"blk51", "blk52", "feature"} -> "cat56",(*stage 6*)
   "cat56" -> "blk61", "cat56" -> "blk62"
   }]

```

 ![752004.jpg](https://global.discourse-cdn.com/wolfram/original/3X/c/5/c56f8ee1f0e33bd352e789102bb311643045d0d9.jpeg)

## Step 3: Importing the Weights and the Biases

Download “[pose\_model\_scratch.pth](https://www.dropbox.com/s/ae071mfm2qoyc8v/pose_model.pth?dl=0)” as a trained model of PyTorch.

Import the parameters, the weights and the biases. I referred “[How to import python pickle \*.pkl?](https://mathematica.stackexchange.com/questions/181273/how-to-import-%5C%20python-pickle-pkl?rq=1)”

```
session = StartExternalSession["Python-NumPy"];
parameters = ExternalEvaluate[session, "import torch
import numpy as np
import pickle as pkl
   
net_weights = torch.load(
       'pose_model_scratch.pth', map_location={'cuda:0': 'cpu'})
keys = list(net_weights.keys())
   
parameters = {}
for i in range(len(keys)):
       t = net_weights[keys[i]]       
       x = t.numpy()
       parameters[keys[i]] = x.flatten()
parameters"];
DeleteObject[session];

keys = Keys[parameters];
parameters = Values[parameters];

```

## Step 4: Parsing the Weights and the Biases

The parameters is 184 sets of one-dimensional lists. They consists of the Weights and the Biases of 92 Convolution layers in OpenPose.

Get a list of layer names for OpenPose with depth level. Then, get a list of 92 names where convolution layer is used in it.

```
layernames = 
  GroupBy[Keys@NetInformation[openpose, "Layers"], First] // Values;
convlayernames = (Position[
     NetInformation[openpose, "Layers"], _ConvolutionLayer] // 
    Flatten)[[All, 1]]

```

 ![691905.jpg](https://global.discourse-cdn.com/wolfram/original/2X/6/6b29547d59c1d3c9c81e4ff7314a134d46286861.jpeg)

As you can see in keys, you can see that the order of convolution layers of OpenPose is different from the order of convolution layers of “pose\_model\_scratch.pth”

```
 keys

```

 ![387908.jpg](https://global.discourse-cdn.com/wolfram/original/3X/6/4/64ecfd6ba629207df031c14d6ea39ea1a186307d.jpeg)

So, manually sort the order of convolution layers in OpenPose into the order of “pose\_model\_scratch.pth”

```
convlayernamesGH = {{"feature", "conv1_1"}, {"feature", "conv1_2"},
   {"feature", "conv2_1"}, {"feature", "conv2_2"},
   {"feature", "conv3_1"}, {"feature", "conv3_2"}, {"feature", "conv3_3"}, {"feature", "conv3_4"},
   {"feature", "conv4_1"}, {"feature", "conv4_2"},
   {"feature", "convadd1"}, {"feature", "convadd2"},
   {"blk11", 1}, {"blk11", 3}, {"blk11", 5}, {"blk11", 7}, {"blk11", 9},
   {"blk21", 1}, {"blk21", 3}, {"blk21", 5}, {"blk21", 7}, {"blk21", 9}, {"blk21", 11}, {"blk21", 13},
   {"blk31", 1}, {"blk31", 3}, {"blk31", 5}, {"blk31", 7}, {"blk31", 9}, {"blk31", 11}, {"blk31", 13},
   {"blk41", 1}, {"blk41", 3}, {"blk41", 5}, {"blk41", 7}, {"blk41", 9}, {"blk41", 11}, {"blk41", 13},
   {"blk51", 1}, {"blk51", 3}, {"blk51", 5}, {"blk51", 7}, {"blk51", 9}, {"blk51", 11}, {"blk51", 13},
   {"blk61", 1}, {"blk61", 3}, {"blk61", 5}, {"blk61", 7}, {"blk61", 9}, {"blk61", 11}, {"blk61", 13},
   {"blk12", 1}, {"blk12", 3}, {"blk12", 5}, {"blk12", 7}, {"blk12", 9},
   {"blk22", 1}, {"blk22", 3}, {"blk22", 5}, {"blk22", 7}, {"blk22", 9}, {"blk22", 11}, {"blk22", 13},
   {"blk32", 1}, {"blk32", 3}, {"blk32", 5}, {"blk32", 7}, {"blk32", 9}, {"blk32", 11}, {"blk32", 13},
   {"blk42", 1}, {"blk42", 3}, {"blk42", 5}, {"blk42", 7}, {"blk42", 9}, {"blk42", 11}, {"blk42", 13},
   {"blk52", 1}, {"blk52", 3}, {"blk52", 5}, {"blk52", 7}, {"blk52", 9}, {"blk52", 11}, {"blk52", 13},
   {"blk62", 1}, {"blk62", 3}, {"blk62", 5}, {"blk62", 7}, {"blk62", 9}, {"blk62", 11}, {"blk62", 13}
   };

```

Get the position of each element of convlayernamesGH in OpenPose.

```
convlayerpos = 
 Flatten[Position[layernames, #] & /@ convlayernamesGH, 1]

```

 ![109406.jpg](https://global.discourse-cdn.com/wolfram/original/3X/6/a/6a9a1ee7832bb9c4afc7bc4897394b5bdea7aaff.jpeg)

Reshape each one-dimensional list of parameters to the dimension of the corresponding weight or bias.

```
getDimB[layer_] := Dimensions@NetExtract[layer, "Biases"]
getDimW[layer_] := Dimensions@NetExtract[layer, "Weights"]
convs = NetExtract[NetInitialize[openpose], #] & /@ convlayerpos;
dimW = getDimW /@ convs;
dimB = getDimB /@ convs;
dim = Flatten[Transpose[{dimW, dimB}], 1];
parametersReshape = MapThread[ArrayReshape, {parameters, dim}];

```

## Step 5: Linking the Weights and the Biases

Replace the initial values of weights and biases in OpenPose with learned parameters, and finally get trained OpenPose.

```
replacenames =
  Flatten[
   Transpose[{Flatten@{#, "Weights"} & /@ convlayernamesGH, 
     Flatten@{#, "Biases"} & /@ convlayernamesGH}], 1];
rule = Thread[replacenames -> parametersReshape];
trainedOpenPose = NetReplacePart[openpose, rule]

```

 ![179107.jpg](https://global.discourse-cdn.com/wolfram/original/2X/b/b5c74d673c3b9e949f8ec6972feb83a528d37ff2.jpeg)

## Step 6: Making the tests

For simplification, estimate pose for the image of single-person. The Output2 of OpenPose shows the confidence of 19 body parts in each part where the image is divided into 46 \* 46.

1:Nose, 2:Neck, 3:RShoulder, 4:RElbow, 5:RWrist, 6:LShoulder, 7:LElbow, 8:LWrist,  
9:RHip, 10:RKnee, 11:RAnkle, 12:LHip, 13:LKnee, 14:LAnkle, 15:REye, 16:LEye, 17:REar, 18:LEar, 19:Bkg

Define the function to get the position of max of confidence of each body part.

```
maxpts[img_, confidences_, idex_] := Module[{pos, pts, h},
  pos = Reverse@First@Position[h = confidences[[idex]], Max@h];
  pts = (pos/46)*ImageDimensions@img; 
  pts = {pts[[1]], (ImageDimensions@img)[[2]] - pts[[2]]}
  ]

```

Connect the detected body parts and show the result together on the original image.

```
showpose[img_] := Module[{bodylist, size, out, confidences, pts, pose},
  bodylist = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14};
  size = {368, 368};
  out = trainedOpenPose[img];
  confidences = out[[2]];
  pts = maxpts[img, confidences, #] & /@ bodylist;
  pose = Graphics[{
     Yellow, Thickness[.0125], Line[pts[[#]] & /@ {1, 2}],
     Green, Line[pts[[#]] & /@ {2, 3, 4, 5}],
     Cyan, Line[pts[[#]] & /@ {2, 6, 7, 8}],
     Orange, Line[pts[[#]] & /@ {2, 9, 10, 11}],
     Magenta, Line[pts[[#]] & /@ {2, 12, 13, 14}],
     PointSize[Large], Red, Point[pts],
     White, Point[{{0, 0}, ImageDimensions@img}]
     }, ImagePadding -> All];
  Show[img, pose]
  ]

```

Let’ try.

```
img = Import["ichiro.jpg"];
showpose[img]

```

 ![161401.jpg](https://global.discourse-cdn.com/wolfram/original/2X/6/6906cbe76ce0227ad77ce5d13b58a6a4623b14bf.jpeg)

## Future work

? Estimate the pose of an image in which multi-person are by using PAFs of output1 of OpenPose.

? Convert a more accurate pose estimation model.

[openpose.nb](https://community.wolfram.com/uploads/short-url/1aAmkox6RFOnkTXVnUrnp0s56YA.nb) (1.22 MB)

---

<div class="post-metadata">

**Author:** ![tuseetab](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@tuseetab](https://community.wolfram.com/u/tuseetab)\
**Post date:** [September 11, 2019, 2:21am UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/2 "2019-09-11T02:21:49Z")

</div>

It is wonderful to see how you converted this model and so soon. Please feel free to reach out to us via the contact us button in the Neural Repo page.

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [September 11, 2019, 8:43pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/3 "2019-09-11T20:43:32Z")

</div>

![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)

- Congratulations! This post is now featured in our [Staff Pick](http://community.wolfram.com/content?curTag=staff+picks) column as distinguished by a badge on your profile of a [Featured Contributor](http://community.wolfram.com/web/okazakikotaro)! Thank you, keep it coming!

---

<div class="post-metadata">

**Author:** ![Vitaliyk](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vitaliyk/32/45591_2.png) [@Vitaliyk](https://community.wolfram.com/u/Vitaliyk)\
**Post date:** [September 11, 2019, 8:46pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/4 "2019-09-11T20:46:18Z")

</div>

Kotaro-san, what a wonderful work and presentation, thank you for sharing!

---

<div class="post-metadata">

**Author:** ![bwood](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/bwood/32/41491_2.png) [@bwood](https://community.wolfram.com/u/bwood)\
**Post date:** [September 23, 2019, 3:09pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/5 "2019-09-23T15:09:55Z")

</div>

This is a great example; thank you for the post! I can imagine all sorts of interesting uses for OpenPose in the Wolfram Language.

I was trying to replicate your process, and I got stuck on the last part of Step 4, which I think may be missing a line of code:

> Reshape each one-dimensional list of parameters to the dimension of  
> the corresponding weight or bias.

The subsequent step uses a `parametersReshape` variable, which is probably meant to be defined here. Could you possibly provide this missing piece?

I’m looking forward to exploring this further!

---

<div class="post-metadata">

**Author:** ![okazakikotaro](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/okazakikotaro/32/14323_2.png) [@okazakikotaro](https://community.wolfram.com/u/okazakikotaro)\
**Post date:** [September 23, 2019, 8:29pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/6 "2019-09-23T20:29:08Z")

</div>

Brian-san,

Thank you very much for taking the time and spotting this. Sorry I have updated my post. There was lines of code missing.

```
getDimB[layer_] := Dimensions@NetExtract[layer, "Biases"]
getDimW[layer_] := Dimensions@NetExtract[layer, "Weights"]
convs = NetExtract[NetInitialize[openpose], #] & /@ convlayerpos;
dimW = getDimW /@ convs;
dimB = getDimB /@ convs;
dim = Flatten[Transpose[{dimW, dimB}], 1];
parametersReshape = MapThread[ArrayReshape, {parameters, dim}];

```

---

<div class="post-metadata">

**Author:** ![bwood](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/bwood/32/41491_2.png) [@bwood](https://community.wolfram.com/u/bwood)\
**Post date:** [September 24, 2019, 3:33pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/7 "2019-09-24T15:33:01Z")

</div>

Kotaro-san,

Thank you for the update. That was exactly the detail I needed! Looks like your implementation is working perfectly for me.

---

<div class="post-metadata">

**Author:** ![fellerroot](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/fellerroot/32/40070_2.png) [@fellerroot](https://community.wolfram.com/u/fellerroot)\
**Post date:** [September 24, 2019, 3:43pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/8 "2019-09-24T15:43:04Z")

</div>

That was very informative, thank you.

---

<div class="post-metadata">

**Author:** ![bwood](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/bwood/32/41491_2.png) [@bwood](https://community.wolfram.com/u/bwood)\
**Post date:** [September 24, 2019, 3:53pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/9 "2019-09-24T15:53:42Z")

</div>

As a somewhat simplistic way of finding multiple poses in an image, I thought it would be interesting to use `ImageContents` to find people and then use your OpenPose implementation to detect poses for each person.

First, I altered your `showPose` function to include an `origin` parameter and removed the last line to make it return the poses only (i.e. a `pose` function):

```
pose[img_, origin_: {0, 0}] := 
 Module[{bodylist, size, out, confidences, pts, people, pose},
  bodylist = Range[14];
  size = {368, 368};
  out = trainedOpenPose[img];
  confidences = out[[2]];
  pts = Map[Plus[origin, #] &, 
    maxpts[img, confidences, #] & /@ bodylist];
  pose = Graphics[{Yellow, Thickness[.0125], 
     Line[pts[[#]] & /@ {1, 2}], Green, 
     Line[pts[[#]] & /@ {2, 3, 4, 5}], Cyan, 
     Line[pts[[#]] & /@ {2, 6, 7, 8}], Orange, 
     Line[pts[[#]] & /@ {2, 9, 10, 11}], Magenta, 
     Line[pts[[#]] & /@ {2, 12, 13, 14}], PointSize[Large], Red, 
     Point[pts]}, ImagePadding -> All]]

```

Then I made a function that retrieves the images and bounding boxes for each person in the original image, computing and translating poses for each image based on the origin of its bounding box:

```
multiPose[img_] := Module[{people, boxes, poses},
  {people, boxes} = 
   Transpose[
    Normal@ImageContents[img, 
        Entity["Concept", "Person::93r37"]][[All, {"Image", 
         "BoundingBox"}]] // Values];
  poses = 
   Table[pose[people[[i]], boxes[[i, 1]]], {i, Length[people]}]]

```

Finally, a function to show the poses in context:

```
showMultiPose[img_] := Show[img, Sequence[multiPose[img]]]

```

Not suitable for real-time processing or anything, but it was very easy to implement, and it seems to work in seconds, even for a decent number of people:

 ![Dancer-Poses.jpg](https://global.discourse-cdn.com/wolfram/original/1X/285cb25efab8feeda7bb9f037538fd87cf748e66.jpeg)

---

<div class="post-metadata">

**Author:** ![okazakikotaro](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/okazakikotaro/32/14323_2.png) [@okazakikotaro](https://community.wolfram.com/u/okazakikotaro)\
**Post date:** [September 25, 2019, 6:28pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/10 "2019-09-25T18:28:58Z")

</div>

Brian-san,

Thanks for your try. Your idea of using ImageContents to estimate multi-person pose is really great. It was unthinkable to me. I think the best part of the community is knowing how to use Wolfram Language inconceivably. Thank you again!

---

<div class="post-metadata">

**Author:** ![julianwfrancis](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@julianwfrancis](https://community.wolfram.com/u/julianwfrancis)\
**Post date:** [October 8, 2019, 2:11pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/11 "2019-10-08T14:11:46Z")

</div>

Coincidentally I was also looking at converting OpenPose when I came across this post. This is lovely work, thank you very much. It’d be great to see it in the Wolfram Neural Net Repository. I have had 3 models (single shot detectors) submitted and accepted (several more in the pipeline). I don’t work for Wolfram, but they were very helpful guiding me through their submission process and they do acknowledge your contribution on their repository site.

Thanks once again,

Julian.

---

<div class="post-metadata">

**Author:** ![tuseetab](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@tuseetab](https://community.wolfram.com/u/tuseetab)\
**Post date:** [October 8, 2019, 3:30pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/12 "2019-10-08T15:30:06Z")

</div>

Julian,

Thank you for your kind words. As always, it is a pleasure working with you to get your models in the repository. We always look forward to more submissions from you, Kotaro-san and all our users.

Thanks,  
Tuseeta

---

<div class="post-metadata">

**Author:** ![whitten](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/whitten/32/7025_2.png) [@whitten](https://community.wolfram.com/u/whitten)\
**Post date:** [October 21, 2019, 3:29pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/13 "2019-10-21T15:29:50Z")

</div>

I saw this post, but don’t see any links to OpenPose itself. Is it a Wolfram toolset? Or is there a GitHub repository? Any links would be appreciated.

---

<div class="post-metadata">

**Author:** ![okazakikotaro](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/okazakikotaro/32/14323_2.png) [@okazakikotaro](https://community.wolfram.com/u/okazakikotaro)\
**Post date:** [October 22, 2019, 1:33pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/14 "2019-10-22T13:33:05Z")

</div>

David-san,

Thank you for your comment.  
I refered [here](https://github.com/tensorboy/pytorch_Realtime_Multi-Person_Pose_Estimation).

---

<div class="post-metadata">

**Author:** ![wayne](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wayne](https://community.wolfram.com/u/wayne)\
**Post date:** [January 27, 2020, 4:38am UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/15 "2020-01-27T04:38:52Z")

</div>

Step 3 takes a long time on my machine, why?

---

<div class="post-metadata">

**Author:** ![wayne](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wayne](https://community.wolfram.com/u/wayne)\
**Post date:** [January 27, 2020, 6:08am UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/16 "2020-01-27T06:08:59Z")

</div>

How come I do not know “Person::93r37” where this comes from ???

```
Entity["Concept", "Person::93r37"]

```

We are enterprise licensed customers for years and documentation center has nothing on this???

---

<div class="post-metadata">

**Author:** ![okazakikotaro](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/okazakikotaro/32/14323_2.png) [@okazakikotaro](https://community.wolfram.com/u/okazakikotaro)\
**Post date:** [January 27, 2020, 12:39pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/17 "2020-01-27T12:39:43Z")

</div>

I’m sorry I have no clear answer to your question. However, it takes a few seconds in my environment (Windows 10 and Mathematica v12.0).

---

<div class="post-metadata">

**Author:** ![wayne](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wayne](https://community.wolfram.com/u/wayne)\
**Post date:** [January 27, 2020, 3:40pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/18 "2020-01-27T15:40:36Z")

</div>

iMAC 12.0 Mathematica and it hangs for hours.

I am going to submit this to tech support.

---

<div class="post-metadata">

**Author:** ![wayne](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wayne](https://community.wolfram.com/u/wayne)\
**Post date:** [January 27, 2020, 5:00pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/19 "2020-01-27T17:00:24Z")

</div>

Tech support responded to this, therefore no worries.

---

<div class="post-metadata">

**Author:** ![wayne](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wayne](https://community.wolfram.com/u/wayne)\
**Post date:** [January 27, 2020, 9:32pm UTC](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715/20 "2020-01-27T21:32:03Z")

</div>

Wolfram techsupport wrote and asked me to ask you Mr.Okazaki to send me your FULL NOTEBOOK to run your code. They like to use that notebook to track the problem.

Let me know if you are willing to do that

Dara

[Next page](https://community.wolfram.com/t/converting-openpose-for-wolfram-language/14715.md?page=2)
