You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* "Viewing" deleted, as it's info was moved to a separate page in the wiki
* "Forks and Related"->"Generate normal maps" deleted, now a feature is this repo
* Changelog moved to a separate file
* ability to run DepthMap without WebUI (Use main.py. Make sure all the dependencies are installed. The support is not feature-complete.)
4
+
5
+
### 0.4.0 large code refactor
6
+
* UI improvements
7
+
* improved Batch from Directory, Clip and renormalize DepthMap
8
+
* slightly changed the behaviour of various options
9
+
* extension may partially work even if some of the dependencies are unmet
10
+
11
+
### 0.3.12
12
+
* Fixed stereo image generation
13
+
* Other bugfixes
14
+
### 0.3.11
15
+
* 3D model viewer (Experimental!)
16
+
* simple and fast (occluded) 3D mesh generation, support for equirectangular projection
17
+
(accurate results with ZoeDepth models only, no boost, no custom maps)
18
+
* default output format is now obj for inpainted mesh and simple mesh
19
+
### 0.3.10
20
+
* ZoeDepth support (with boost), 3 new models, best results so far
21
+
* better heatmap
22
+
### 0.3.9
23
+
* use existing/custom depthmaps in output dir for batch mode
24
+
* custom depthmap support for single file
25
+
* wavefront obj output support for inpainted mesh (enabled in settings)
26
+
* option to generate all stereo formats at once
27
+
* bugfix: convert single channel input image to rgb
28
+
* renamed midas imports to fix conflict with deforum
29
+
* ui cleanup
30
+
### 0.3.8 bugfix
31
+
* bugfix in remove background path
32
+
### 0.3.7 new features
33
+
*[rembg](https://github.com/danielgatis/rembg) Remove Background [PR](https://github.com/thygate/stable-diffusion-webui-depthmap-script/pull/78) by [@graemeniedermayer](https://github.com/graemeniedermayer) merged
34
+
* setting to flip Left/Right SBS images
35
+
* added missing parameter for 3d inpainting (repeat_inpaint_edge)
36
+
* option to generate demo videos with mesh
37
+
### 0.3.6 new feature
38
+
* implemented binary ply file format for the inpainted 3D mesh, big reduction in filesize and save/load times.
39
+
* added progress indicators to the inpainting process
40
+
### 0.3.5 bugfix
41
+
* create path to 3dphoto models before download (see [issue](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/76))
42
+
### 0.3.4 new featues
43
+
* depth clipping option (original idea by [@Extraltodeus](https://github.com/Extraltodeus))
44
+
* by popular demand, 3D-Photo-Inpainting is now implemented
45
+
* generate inpainted 3D mesh (PLY) and videos of said mesh
46
+
### 0.3.3 bugfix and new midas models
47
+
* updated to midas 3.1, bringing 2 new depth models (the 512 one eats VRAM for breakfast!)
48
+
* fix Next-ViT dependency issue for new installs
49
+
* extension no longer clones repositories, all dependencies are now contained in the extension
50
+
### 0.3.2 new feature and bugfixes
51
+
* several bug fixes for apple silicon and other machines without cuda
52
+
* NEW Stereo Image Generation techniques for gap filling by [@semjon00](https://github.com/semjon00) using polylines. (See [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/pull/56)) Significant improvement in quality.
53
+
### 0.3.1 bugfix
54
+
* small speed increase for anaglyph creation
55
+
* clone midas repo before midas 3.1 to fix issue (see [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/55#issue-1510266008))
56
+
### 0.3.0 improved stereo image generation
57
+
* New improved technique for generating stereo images and balancing distortion between eyes by [@semjon00](https://github.com/semjon00) (See [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/pull/51))
58
+
* Substantial speedup of stereo image generation code using numba JIT
59
+
### 0.2.9 new feature
60
+
* 3D Stereo (side-by-side) and red/cyan anaglyph image generation.
61
+
(Thanks to [@sina-masoud-ansari](https://github.com/sina-masoud-ansari) for the tip! Discussion [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/discussions/45))
62
+
### 0.2.8 bugfix
63
+
* boost (pix2pix) now also able to compute on cpu
64
+
* res101 able to compute on cpu
65
+
### 0.2.7 separate tab
66
+
* Depth Tab now available for easier stand-alone (batch) processing
67
+
### 0.2.6 ui layout and settings
68
+
* added link to repo so more people find their way to the instructions.
69
+
* boost rmax setting
70
+
### 0.2.5 bugfix
71
+
* error checking on model download (now with progressbar)
72
+
### 0.2.4 high resolution depthmaps
73
+
* multi-resolution merging is now implemented, significantly improving results!
74
+
* res101 can now also compute on CPU
75
+
### 0.2.3 bugfix
76
+
* path error on linux fixed
77
+
### 0.2.2 new features
78
+
* added (experimental) support for AdelaiDepth/LeReS (GPU Only!)
79
+
* new option to view depthmap as heatmap
80
+
* optimised ui layout
81
+
### 0.2.1 bugfix
82
+
* Correct seed is now used in filename and pnginfo when running batches. (see [issue](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/35))
83
+
### 0.2.0 upgrade
84
+
* the script is now an extension, enabling auto installation.
85
+
### 0.1.9 bugfixes
86
+
* sd model moved to system memory while computing depthmap
87
+
* memory leak/fragmentation issue fixed
88
+
* recover from out of memory error
89
+
### 0.1.8 new options
90
+
* net size can now be set as width and height, option to match input size, sliders now have the same range as generation parameters. (see usage below)
91
+
* better error handling
92
+
### 0.1.7 bugfixes
93
+
* batch img2img now works (see [issue](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/21#issuecomment-1306445056))
94
+
* generation parameters now only saved when enabled in settings
95
+
* model memory freed explicitly at end of script
96
+
### 0.1.6 new option
97
+
* option to invert depthmap (black=near, white=far), as required by some viewers.
98
+
### 0.1.5 bugfix
99
+
* saving as any format other than PNG now always produces an 8 bit, 3 channel RGB image. A single channel 16 bit image is only supported when saving as PNG. (see [issue](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/15#issuecomment-1304909019))
100
+
### 0.1.4 update
101
+
* added support for `--no-half`. Now also works with cards that don't support half precision like GTX 16xx. ([verified](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/12#issuecomment-1304656398))
102
+
### 0.1.3 bugfix
103
+
* bugfix where some controls where not visible (see [issue](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/11#issuecomment-1304400537))
* overflow issue (see [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/10) for details and examples of artifacts)
108
+
* when not combining, depthmap is now saved as single channel 16 bit
images generated by [@semjon00](https://github.com/semjon00) from CC0 photos, more examples [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/pull/56#issuecomment-1367596463).
22
22
23
-
## Changelog
24
-
* v0.4.1 standalone mode
25
-
* ability to run DepthMap without WebUI (Use main.py. Make sure all the dependencies are installed. The support is not feature-complete.)
26
-
* v0.4.0 large code refactor
27
-
* UI improvements
28
-
* improved Batch from Directory, Clip and renormalize DepthMap
29
-
* slightly changed the behaviour of various options
30
-
* extension may partially work even if some of the dependencies are unmet
31
-
* v0.3.12
32
-
* Fixed stereo image generation
33
-
* Other bugfixes
34
-
* v0.3.11
35
-
* 3D model viewer (Experimental!)
36
-
* simple and fast (occluded) 3D mesh generation, support for equirectangular projection
37
-
(accurate results with ZoeDepth models only, no boost, no custom maps)
38
-
* default output format is now obj for inpainted mesh and simple mesh
39
-
* v0.3.10
40
-
* ZoeDepth support (with boost), 3 new models, best results so far
41
-
* better heatmap
42
-
* v0.3.9
43
-
* use existing/custom depthmaps in output dir for batch mode
44
-
* custom depthmap support for single file
45
-
* wavefront obj output support for inpainted mesh (enabled in settings)
46
-
* option to generate all stereo formats at once
47
-
* bugfix: convert single channel input image to rgb
48
-
* renamed midas imports to fix conflict with deforum
49
-
* ui cleanup
50
-
* v0.3.8 bugfix
51
-
* bugfix in remove background path
52
-
* v0.3.7 new features
53
-
*[rembg](https://github.com/danielgatis/rembg) Remove Background [PR](https://github.com/thygate/stable-diffusion-webui-depthmap-script/pull/78) by [@graemeniedermayer](https://github.com/graemeniedermayer) merged
54
-
* setting to flip Left/Right SBS images
55
-
* added missing parameter for 3d inpainting (repeat_inpaint_edge)
56
-
* option to generate demo videos with mesh
57
-
* v0.3.6 new feature
58
-
* implemented binary ply file format for the inpainted 3D mesh, big reduction in filesize and save/load times.
59
-
* added progress indicators to the inpainting process
60
-
* v0.3.5 bugfix
61
-
* create path to 3dphoto models before download (see [issue](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/76))
62
-
* v0.3.4 new featues
63
-
* depth clipping option (original idea by [@Extraltodeus](https://github.com/Extraltodeus))
64
-
* by popular demand, 3D-Photo-Inpainting is now implemented
65
-
* generate inpainted 3D mesh (PLY) and videos of said mesh
66
-
* v0.3.3 bugfix and new midas models
67
-
* updated to midas 3.1, bringing 2 new depth models (the 512 one eats VRAM for breakfast!)
68
-
* fix Next-ViT dependency issue for new installs
69
-
* extension no longer clones repositories, all dependencies are now contained in the extension
70
-
* v0.3.2 new feature and bugfixes
71
-
* several bug fixes for apple silicon and other machines without cuda
72
-
* NEW Stereo Image Generation techniques for gap filling by [@semjon00](https://github.com/semjon00) using polylines. (See [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/pull/56)) Significant improvement in quality.
73
-
* v0.3.1 bugfix
74
-
* small speed increase for anaglyph creation
75
-
* clone midas repo before midas 3.1 to fix issue (see [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/55#issue-1510266008))
76
-
* v0.3.0 improved stereo image generation
77
-
* New improved technique for generating stereo images and balancing distortion between eyes by [@semjon00](https://github.com/semjon00) (See [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/pull/51))
78
-
* Substantial speedup of stereo image generation code using numba JIT
79
-
* v0.2.9 new feature
80
-
* 3D Stereo (side-by-side) and red/cyan anaglyph image generation.
81
-
(Thanks to [@sina-masoud-ansari](https://github.com/sina-masoud-ansari) for the tip! Discussion [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/discussions/45))
82
-
* v0.2.8 bugfix
83
-
* boost (pix2pix) now also able to compute on cpu
84
-
* res101 able to compute on cpu
85
-
* v0.2.7 separate tab
86
-
* Depth Tab now available for easier stand-alone (batch) processing
87
-
* v0.2.6 ui layout and settings
88
-
* added link to repo so more people find their way to the instructions.
89
-
* boost rmax setting
90
-
* v0.2.5 bugfix
91
-
* error checking on model download (now with progressbar)
92
-
* v0.2.4 high resolution depthmaps
93
-
* multi-resolution merging is now implemented, significantly improving results!
94
-
* res101 can now also compute on CPU
95
-
* v0.2.3 bugfix
96
-
* path error on linux fixed
97
-
* v0.2.2 new features
98
-
* added (experimental) support for AdelaiDepth/LeReS (GPU Only!)
99
-
* new option to view depthmap as heatmap
100
-
* optimised ui layout
101
-
* v0.2.1 bugfix
102
-
* Correct seed is now used in filename and pnginfo when running batches. (see [issue](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/35))
103
-
* v0.2.0 upgrade
104
-
* the script is now an extension, enabling auto installation.
105
-
* v0.1.9 bugfixes
106
-
* sd model moved to system memory while computing depthmap
107
-
* memory leak/fragmentation issue fixed
108
-
* recover from out of memory error
109
-
* v0.1.8 new options
110
-
* net size can now be set as width and height, option to match input size, sliders now have the same range as generation parameters. (see usage below)
111
-
* better error handling
112
-
* v0.1.7 bugfixes
113
-
* batch img2img now works (see [issue](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/21#issuecomment-1306445056))
114
-
* generation parameters now only saved when enabled in settings
115
-
* model memory freed explicitly at end of script
116
-
* v0.1.6 new option
117
-
* option to invert depthmap (black=near, white=far), as required by some viewers.
118
-
* v0.1.5 bugfix
119
-
* saving as any format other than PNG now always produces an 8 bit, 3 channel RGB image. A single channel 16 bit image is only supported when saving as PNG. (see [issue](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/15#issuecomment-1304909019))
120
-
* v0.1.4 update
121
-
* added support for `--no-half`. Now also works with cards that don't support half precision like GTX 16xx. ([verified](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/12#issuecomment-1304656398))
122
-
* v0.1.3 bugfix
123
-
* bugfix where some controls where not visible (see [issue](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/11#issuecomment-1304400537))
* overflow issue (see [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/10) for details and examples of artifacts)
128
-
* when not combining, depthmap is now saved as single channel 16 bit
129
23
130
24
## Install instructions
131
25
The script is now also available to install from the `Available` subtab under the `Extensions` tab in the WebUI.
@@ -190,48 +84,15 @@ If you often get out of memory errors when computing a depthmap on GPU while usi
190
84
- You can run the MiDaS network on their colab linked here https://pytorch.org/hub/intelisl_midas_v2/
191
85
- You can run BoostingMonocularDepth on their colab linked here : https://colab.research.google.com/github/compphoto/BoostingMonocularDepth/blob/main/Boostmonoculardepth.ipynb
192
86
193
-
## Viewing
194
-
195
-
### For viewing on 2D displays
196
-
197
-
* There is the excellent [depthy](https://github.com/panrafal/depthy) by Rafał Lindemann. LIVE link : [https://depthy.stamina.pl/](https://depthy.stamina.pl/)
198
-
(Instructions: Drag the rgb image into the window, then select Load depthmap, and drag the depthmap into the dialog inside the window.) Generates GIF and video.
199
-
200
-
* The [depth-player](https://github.com/spite/depth-player) by [@spite](https://github.com/spite) can load rgb and depthmap images and export a Wavefront OBJ file of a displaced plane mesh with the rgb image applied as texture. LIVE link : [https://depthplayer.ugocapeto.com/](https://depthplayer.ugocapeto.com/) Thanks to [@AugmentedRealityCat](https://github.com/AugmentedRealityCat) for the tip.
201
-
202
-
* Simple interactive depthmap viewer using three ([source](https://github.com/thygate/depthmap-viewer-three)). LIVE link : [https://thygate.github.io/depthmap-viewer-three](https://thygate.github.io/depthmap-viewer-three) (Instructions: Drag a combined-rgb-and-depth-horizontally image into the window to view it)
203
-
204
-
### For viewing on 3D devices
205
-
206
-
* SBS Stereo images can easily be viewed in 3D on VR devices, even cheap ones that use a smartphone like [Google Cardboard](https://arvr.google.com/cardboard/). To view an SBS image, you may simply display it on the phone screen and then insert the phone into the headset. A more convenient option may be to stream the picture from the computer screen to the phone using Sunshine. You may want to change resolution to match phone's aspect ratio. If you decide to buy a headset, pay attention to the lens' size - usually headsets with larger lenses work the best.
207
-
208
-
* Simple interactive depthmap viewer for Looking Glass using three. LIVE link : [https://thygate.github.io/depthmap-viewer-three-lookingglass](https://thygate.github.io/depthmap-viewer-three-lookingglass) (Instructions: Drag a combined-rgb-and-depth-horizontally image into the window to view it)
209
-
210
-
* Unity3D project to view the depthmaps on Looking Glass in realtime as images are generated. Leave a message in the discussion section if you want me to publish it too.
211
-
212
-
### Blender
213
-
* Blender depthmap import addon by [@Ladypoly](https://github.com/LadyPoly) ([comment](https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/4252#discussioncomment-4333661)).
214
-
Download the addon here : [importdepthmap_1.0.3.zip](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/10194086/importdepthmap_1.0.3.zip) (Blender 3.3.0 or newer)
* Set camera to origin (0, 0, 0) and pointing up to align it with the mesh
222
-
* adjust camera FOV to match the mesh
223
-
* Add a 'Color Attribute' Node and connect it to the shader color input
224
-
225
87
## Forks and Related
226
-
* Generate normal maps from depth maps : [stable-diffusion-webui-normalmap-script](https://github.com/graemeniedermayer/stable-diffusion-webui-normalmap-script) by [@graemeniedermayer](https://github.com/graemeniedermayer), also check his [clothseg](https://github.com/graemeniedermayer/clothseg) extension.
227
88
228
89
* Several scripts by [@Extraltodeus](https://github.com/Extraltodeus) using depth maps : https://github.com/Extraltodeus?tab=repositories
229
90
230
91
### More updates soon .. Feel free to comment and share in the discussions.
231
92
232
93
## Acknowledgements
233
94
234
-
This project uses code and information from following papers :
95
+
This project relies on code and information from following papers :
0 commit comments