Replies: 3 comments 8 replies
-
Anything? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure on the details of what you're trying to do, but for example if you're using pytorch to train your models in one process, you can have another process that runs We don't exactly do this, but I do know someone who's using a library built on top of |
Beta Was this translation helpful? Give feedback.
-
We haven't done anything like that yet, so there's no example that I know of. In principal it should be possible to do what you want. However, pygfx is (most probably) not thread-safe, so you'll want to make sure that only one thread is talking to pygfx. One other possible issue is that I'm not sure how things will work out with the GUI window and events, which you want to handle in that same thread. If you do the viz in the main thread and the training in a separate thread, I presume that part at least will be easier. So it looks like you're a pioneer in this regard 😉 We'd be very happy to accept a PR with an minimal example that does what you need, to help other users that want to do something similar. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to use your package as a render engine for 3D models that my Graph Neural Network produces.
Therefore, I would like to run the rendering window in parallel with my training loop, so I can update my rendered objects every few training batches, and see how the outputs of my network progress over time.
Where can I find a minimal example that shows how to run the rendering window in parallel to the main process, which also allows to update its objects dynamically?
Thanks,
Roy
Beta Was this translation helpful? Give feedback.
All reactions