forked from cgvr/DeltaVR
added more time logging to python script + switched to using CGVR lab WiFi
This commit is contained in:
@@ -6,6 +6,7 @@ import json
|
||||
import logging
|
||||
import httpx
|
||||
import os
|
||||
import time
|
||||
|
||||
from typing import Optional
|
||||
from urllib.parse import urljoin
|
||||
@@ -493,6 +494,8 @@ async def text_to_image_invoke_ai(prompt, output_path):
|
||||
"model_key": INVOKEAI_MODEL_KEY
|
||||
}
|
||||
image_url = await generate_image(args)
|
||||
print("Got image url:", image_url)
|
||||
print("Downloading image file...")
|
||||
print("Downloading image from", image_url)
|
||||
time_start = time.time()
|
||||
download_file(image_url, output_path)
|
||||
download_time = time.time() - time_start
|
||||
print(f"Image downloaded in {round(download_time, 1)} seconds")
|
||||
|
||||
Reference in New Issue
Block a user