Sergey Zhdanov
Sergey Zhdanov
@lshug was the performance reasonable (at least 200ms per frame)? I'm just trying to figure out what way to head out - continue trying to convert something to pure CoreML...
@AliaksandrSiarohin @Ease78 hello, is it possible to trace model execution? where to put: `traced_model = torch.jit.trace(torch_model, example_input)` as suggested here [https://coremltools.readme.io/docs/pytorch-conversion](url) getting `traced_model` would heavily help porting to iOS CoreML
Well, generating `.pt` scripts is pretty straightforward, just add this inside `make_animation` function at `demo.py` ``` traced_detector = torch.jit.trace(kp_detector.module, source, strict=False) traced_generator = torch.jit.trace(generator.module, (source, kp_norm, kp_source), strict=False) traced_detector.save('kp_detector.pt') traced_generator.save('generator.pt')...
Let me share with you the complete "tutorial" how to make it working from the ground on Windows 10 (same for MacOS). Thanks to @chimaerra's comment for a good foundation....
Initial driving video https://user-images.githubusercontent.com/6432677/111039406-fb118400-843e-11eb-8899-123204008f54.mp4 Source Image https://user-images.githubusercontent.com/6432677/111039409-ff3da180-843e-11eb-9d9c-69d29190a7e3.png Result https://user-images.githubusercontent.com/6432677/111039423-0ebcea80-843f-11eb-8dc6-721c36392053.mp4
Hello @ffried do you have a workaround for Vapor 4, by any chance?
Thank you, @ffried, you helped me to come to a solution [explained in this issue](https://github.com/vapor/postgres-kit/issues/164#issuecomment-736765695)
In my case the solution was to enable Ubuntu integration setting in Docker Desktop: Settings -> Resources -> WSL Integration -> Enable integration with additional distros: **Ubuntu** -> Refresh
> Yes it is a known issue that needs to be fixed, I only managed to make it work on gpu with 32gb+ of vram. Don't hesitate to make PRs...
> > Yes it is a known issue that needs to be fixed, I only managed to make it work on gpu with 32gb+ of vram. Don't hesitate to make...