Releases: parkchamchi/DepthViewer
v0.7.3-beta
Accepting .pgm
files as depthmap input
v0.7.2-beta
Fixed minor bugs involving desktop capturing and http input
v0.7.1-beta
Now can receive jpg files from a server as inputs: refer to here
v0.7.0-beta
Now using OnnxRuntime for MiDaS DPT models. Note that the ONNX file this program uses is NOT official and are much less accurate than the outputs generated by official PyTorch model. The ONNX files are here. They should be in Build/weights
directory. They are generated by this script.
In some environments the program may fail to load onnxruntime.dll
. See here for that.
Also added a runtime debug console, press backtick ` to active it
v0.7.0-beta-prerelease-3
Retaining input ratio option for OnnxRuntime
Integrated the runtime console (backtick ` to activate)
Got Exception
EntryPointNotFoundException: OrtGetApiBase assembly:<unknown assembly> type:<unknown type> member:(null)
Microsoft.ML.OnnxRuntime.NativeMethods..cctor () (at <d7591e6396b14c7b9ff6a962184da8b3>:0)
Rethrow as TypeInitializationException: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.
Microsoft.ML.OnnxRuntime.SessionOptions..ctor () (at <d7591e6396b14c7b9ff6a962184da8b3>:0)
OnnxRuntimeDepthModel..ctor (System.String onnxpath, System.String modelType, System.Int32 modelTypeVal, System.Boolean retainRatio, System.Boolean useCuda, System.Int32 gpuid) (at <d6a49a7d7e314d62af4c1630e6f9e54d>:0)
DepthModelBehavior.GetDepthModel (System.String onnxpath, System.String modelType, System.Int32 modelTypeVal, System.Boolean useOnnxRuntime) (at <d6a49a7d7e314d62af4c1630e6f9e54d>:0)
DepthModelBehavior.GetPreset (ModelTypes modeltype) (at <d6a49a7d7e314d62af4c1630e6f9e54d>:0)
MainBehavior.GetPresetModel (System.String type) (at <d6a49a7d7e314d62af4c1630e6f9e54d>:0)
on Windows sandbox, which seems to be a clash between C:/Windows/System32/onnxruntime.dll
and DepthViewer_Data\Plugins\x86_64\onnxruntime.dll
. How can the former suppressed?
Interestingly, when I put onnxruntime.dll
on the directory that the .exe
file is in, it throws DllNotFoundException
instead of EntryPointNotFoundException
.
From prerelease-2:
Now OnnxRuntime is bundled. (for MiDaS v3 DPT models). Note that the output is less accurate than the PyTorch's.
The onnx files are here. Locate them in weights/
. They are generated by this script and are not official files provided by MiDaS.
v0.7.0-beta-prerelease-2
CUDA for OnnxRuntime is now optional
Using in-game debug console (press backtick to active)
From prerelease-1:
Now OnnxRuntime is bundled. (for MiDaS v3 DPT models)
Note that the output is much less accurate than the PyTorch's, the chances are that I messed up something. I think resizing the input to 1:1 square is the problem.
The onnx files are here. Locate them in weights
. They are generated by this script and are not official files provided by MiDaS.
- Can the input texture retain its ratio instead of being fixed to 384*384?
v0.7.0-beta-prerelease-1
Now OnnxRuntime is bundled and can use MiDaS v3 DPT models.
Note that the output is much less accurate than the PyTorch's, the chances are that I messed up something.
The build here has a dpt_hybrid onnx file generated by this script
The onnx files themselves are here
- The dpt models load but do not work on my notebook 😶 (CUDA related? Have to check in the editor)
- Can the input texture retain its ratio instead of being fixed to 384*384?
v0.6.3-beta
GIF support (glitches a bit)
Minor bug fixes
v0.6.2-beta
Pausing videos calls the server
Minor bug fixes
v0.6.1-beta
Fixed a minor bug involving depthserver.py