Skip to content

Commit 88a22c4

Browse files
committed
Bugfix: standalone mesh generation
1 parent 0a96097 commit 88a22c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backbone.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_hide_dirs():
6363
# Standalone backbone
6464
print("DepthMap did not detect stable-duiffusion-webui; launching with the standalone backbone.\n"
6565
"The standalone backbone is not on par with the stable-duiffusion-webui backbone.\n"
66-
"Some features may be missing or work differently.\n")
66+
"Some features may be missing or work differently. Please report bugs.\n")
6767

6868
def save_image(image, path, basename, **kwargs):
6969
import os
@@ -79,11 +79,11 @@ def torch_gc():
7979
torch.cuda.empty_cache()
8080
torch.cuda.ipc_collect()
8181

82-
def get_next_sequence_number():
82+
def get_next_sequence_number(outpath=None, basename=None):
8383
# Don't really care what the number will be... As long as it is unique.
8484
from datetime import datetime, timezone
8585
import random
86-
return f"{int(datetime.now(timezone.utc).timestamp())}-{random.randint(1000,9999)}"
86+
return int(f"{int(datetime.now(timezone.utc).timestamp())}{random.randint(1000,9999)}")
8787

8888
def wrap_gradio_gpu_call(f): return f # Displaying various stats is not supported
8989

0 commit comments

Comments
 (0)