1
0
forked from cgvr/DeltaVR

added more time logging to python script + switched to using CGVR lab WiFi

This commit is contained in:
2026-01-11 12:34:08 +02:00
parent 997bb457ba
commit a23f40787e
4 changed files with 11 additions and 7 deletions

View File

@@ -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")