forked from cgvr/DeltaVR
added more time logging to python script + switched to using CGVR lab WiFi
This commit is contained in:
@@ -32,7 +32,7 @@ def generate_no_preview(image_base64: str):
|
||||
}
|
||||
|
||||
# Start generation
|
||||
print("Starting generation...")
|
||||
print("Generating model...")
|
||||
response = requests.post(f"{API_URL}/generate_no_preview", data=params)
|
||||
response.raise_for_status()
|
||||
|
||||
@@ -50,8 +50,11 @@ def generate_no_preview(image_base64: str):
|
||||
|
||||
# Download the model
|
||||
print("Downloading model...")
|
||||
time_start = time.time()
|
||||
response = requests.get(f"{API_URL}/download/model")
|
||||
response.raise_for_status()
|
||||
time_download = time.time() - time_start
|
||||
print(f"Model downloaded in {round(time_download, 1)} seconds")
|
||||
return response.content
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user