@alantian with the help of your code it was possible to implement GAN for Open Frameworks / Emscripten.
Here is my code (the GAN part is basically yours, just adapted it a little...): https://github.com/Jonathhhan/ofEmscriptenExamples/tree/main/emscriptenGanAnimation
And here my example: https://gan.handmadeproductions.de/
It takes some time to generate, but then it runs surprisingly well.
Thank you very much. Do you want to be mentioned in the code or Github?
Edit: Actually (at least with an endless animation) there seems to be a memory leak issue. Not sure, if that is because of my changes in the code...
@alantian with the help of your code it was possible to implement GAN for Open Frameworks / Emscripten.
Here is my code (the GAN part is basically yours, just adapted it a little...): https://github.com/Jonathhhan/ofEmscriptenExamples/tree/main/emscriptenGanAnimation
And here my example: https://gan.handmadeproductions.de/
It takes some time to generate, but then it runs surprisingly well.
Thank you very much. Do you want to be mentioned in the code or Github?
Edit: Actually (at least with an endless animation) there seems to be a memory leak issue. Not sure, if that is because of my changes in the code...