-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ComfyWorkflows/windows
Initial windows support Former-commit-id: 08c2d03
- Loading branch information
Showing
7 changed files
with
165 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
comfyui_launcher_models/ | ||
comfyui_launcher_projects/ | ||
comfyui_launcher_projects/ | ||
venv/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,4 @@ requests==2.31.0 | |
show-in-file-manager==1.1.4 | ||
tqdm==4.66.2 | ||
urllib3==2.2.0 | ||
virtualenv==20.25.1 | ||
Werkzeug==3.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"credentials": {"civitai": {"apikey": ""}}} | ||
{"credentials": {"civitai": {"apikey": "asd"}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# takes in an argument: the endpoint of the launcher server | ||
|
||
# num_total_tests = len(files) | ||
# passed_tests = [] | ||
# failed_tests = [] | ||
|
||
# for each input json file: | ||
# load the contents of the json file into memory | ||
|
||
# for each json object in memory, replace image filepaths with our testing image filepath | ||
# do the same for videeo filepaths in the json file | ||
|
||
# /import_project name=<uuid> import_json=<json> | ||
# returns an id | ||
|
||
# /projects/<id>/start | ||
# returns a port | ||
|
||
# use selenium navigate to http://localhost:<port> | ||
# wait 15s for the page to load | ||
# click on Queue prompt button | ||
# wait 5s | ||
# stop selenium | ||
|
||
# get request to http://localhost:<port>/queue | ||
# find the client_id and the prompt_id for the prompt we just created in the resopnse above (via selenium) | ||
|
||
""" | ||
ws = websocket.WebSocket() | ||
ws.connect("ws://{}/ws?clientId={}".format("localhost:<port>", client_id)) | ||
is_success = False | ||
while True: | ||
out = ws.recv() | ||
if isinstance(out, str): | ||
message = json.loads(out) | ||
if message['type'] == 'executing': | ||
data = message['data'] | ||
if data['node'] is None and data['prompt_id'] == prompt_id: | ||
is_success = True | ||
break #Execution is done | ||
elif message['type'] == 'execution_error': | ||
is_success = False | ||
break | ||
else: | ||
continue #previews are binary data | ||
if is_success | ||
passed_tests.append(json_file) | ||
else: | ||
failed_tests.append(json_file) | ||
ws.close() | ||
make POST request to /projects/<id>/delete | ||
""" | ||
|
||
# at the end, print out the number of tests that passed and the number of tests that failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters