Merge branch 'development' into development

This commit is contained in:
Peter Baylies 2022-09-16 08:52:27 -04:00 committed by GitHub
commit 9a8fecb2cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,7 @@ dependencies:
- torchmetrics==0.9.3
- pip:
- opencv-python==4.6.0
- protobuf==3.20.1
- realesrgan==0.2.5.0
- test-tube==0.7.5
- transformers==4.21.2

View File

@ -249,6 +249,15 @@ class DreamServer(BaseHTTPRequestHandler):
except CanceledException:
print(f"Canceled.")
return
except Exception as e:
print("Error happened")
print(e)
self.wfile.write(bytes(json.dumps(
{'event': 'error',
'message': str(e),
'type': e.__class__.__name__}
) + '\n',"utf-8"))
raise e
class ThreadingDreamServer(ThreadingHTTPServer):

View File

@ -3,6 +3,7 @@
--pre
--extra-index-url https://download.pytorch.org/whl/nightly/cpu --trusted-host https://download.pytorch.org
protobuf==3.19.4
torch
torchvision
-e .