Uploaded May 2022 | Updated November 2026, 3 hours ago
This is an introduction to using pytorch in conjunction with augmented reality (webxr). It uses camera access and a server for pytorch. The camera captures and send images to a server then which are processed in python using pytorch. The results are then returned to the client and plotted in AR.
Timestamps
0:00 pytorch and depth
2:43 image comparison
3:20 code
Code
clientside - github.com/graemeniedermayer/ArExperiments/blob/main/javascript/arPytorch.js
serverside - github.com/graemeniedermayer/ArExperiments/blob/main/python/django/views/pytorch.py
model used -
github.com/nianticlabs/monodepth2
This is an introduction to using pytorch in conjunction with augmented reality (webxr). It uses camera access and a server for pytorch. The camera captures and send images to a server then which are processed in python using pytorch. The results are then returned to the client and plotted in AR.
Timestamps
0:00 pytorch and depth
2:43 image comparison
3:20 code
Code
clientside - github.com/graemeniedermayer/ArExperiments/blob/main/javascript/arPytorch.js
serverside - github.com/graemeniedermayer/ArExperiments/blob/main/python/django/views/pytorch.py
model used -
github.com/nianticlabs/monodepth2










