Skip to content

Commit

Permalink
Optimise ComfyUI
Browse files Browse the repository at this point in the history
  • Loading branch information
fofr committed Mar 19, 2024
1 parent 7363274 commit b2b7563
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions become-image-api.json
Expand Up @@ -67,7 +67,7 @@
},
"36": {
"inputs": {
"provider": "CPU"
"provider": "CUDA"
},
"class_type": "InstantIDFaceAnalysis",
"_meta": {
Expand Down Expand Up @@ -124,8 +124,8 @@
},
"49": {
"inputs": {
"preprocessor": "Zoe-DepthMapPreprocessor",
"resolution": 1024,
"preprocessor": "MiDaS-DepthMapPreprocessor",
"resolution": 512,
"image": [
"67",
0
Expand Down
2 changes: 1 addition & 1 deletion helpers/comfyui.py
Expand Up @@ -47,7 +47,7 @@ def start_server(self, output_directory, input_directory):
print("Server running")

def run_server(self, output_directory, input_directory):
command = f"python ./ComfyUI/main.py --output-directory {output_directory} --input-directory {input_directory} --disable-metadata"
command = f"python ./ComfyUI/main.py --output-directory {output_directory} --input-directory {input_directory} --disable-metadata --preview-method none --gpu-only"
server_process = subprocess.Popen(command, shell=True)
server_process.wait()

Expand Down

0 comments on commit b2b7563

Please sign in to comment.