Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

animegan on video #191

Open
spikejones1040 opened this issue Jan 30, 2023 · 3 comments
Open

animegan on video #191

spikejones1040 opened this issue Jan 30, 2023 · 3 comments
Assignees
Labels
😇 wontfix This will not be worked on

Comments

@spikejones1040
Copy link

Area Select

react-native-pytorch-core (core package)

Description

I want to apply Animegan model using Playtorch on video, since I am developing React Native Application. However -

  • There is an example in demos of playtorch ( https://playtorch.dev/docs/tutorials/snacks/anime-gan/ ) that does inference on an image. It takes about 3-4 seconds on a single image
  • AnimeGAN model architecture works real-time with CoreML on iOS as well as TFlite on Android
  • With CoreML, it uses NPU and with TFLite it uses GPU of the device to get faster inference speeds
  • Is it possible to use AnimeGAN in Playtorch and use HW acceleration (either GPU or NPU)?
  • Does anyone have any pointers where someone has tried Playtorch for style-transfer or UNet style models on video for real-time performance?

Any help/pointers will be greatly appreciated.

@raedle
Copy link
Contributor

raedle commented Jan 31, 2023

Hi @spikejones1040, the short answer is PlayTorch doesn't support ML accelerators, and is limited by the options of the PyTorch Mobile lite interpreter runtime. The longer answer is explained in #81 (comment)

@raedle raedle self-assigned this Jan 31, 2023
@spikejones1040
Copy link
Author

Thanks for pointer and explanation. Is the support for accelerators planned in future releases ? as there are tons of use cases for videos (style transfer, super resolution, background removal etc. ) It will make playtorch very powerful. Currently with image only support it is a bit limited.

@raedle
Copy link
Contributor

raedle commented Jan 31, 2023

There are no plans to add support. But we are accepting PRs if anyone wants to take a stab

@raedle raedle added the 😇 wontfix This will not be worked on label Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
😇 wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants