1
0
forked from cgvr/DeltaVR

2 Commits

Author SHA1 Message Date
b424c6467b Unity pipeline scripts cleanup + enable dev build 2025-12-17 15:46:57 +02:00
409b9fbb51 small cleanup of pipeline script 2025-12-17 15:46:01 +02:00
8 changed files with 9 additions and 18 deletions

View File

@@ -59,7 +59,7 @@ def generate_no_preview(image_base64: str):
print(f"Error: {str(e)}") print(f"Error: {str(e)}")
return None return None
def image_to_3d_api(image_path, output_path): def image_to_3d_trellis(image_path, output_path):
with open(image_path, 'rb') as image_file: with open(image_path, 'rb') as image_file:
image_data = image_file.read() image_data = image_file.read()

View File

@@ -8,7 +8,7 @@ from datetime import datetime
from dotenv import load_dotenv from dotenv import load_dotenv
from generate_image_local import text_to_image_invoke_ai from generate_image_local import text_to_image_invoke_ai
from generate_model_local import image_to_3d_api from generate_model_local import image_to_3d_trellis
load_dotenv() load_dotenv()
@@ -51,7 +51,7 @@ async def main():
print(f"Generated image file: {image_path}") print(f"Generated image file: {image_path}")
model_path = pipeline_folder / "models" / timestamp model_path = pipeline_folder / "models" / timestamp
model_file = image_to_3d_api(image_path, model_path) model_file = image_to_3d_trellis(image_path, model_path)
model_generation_time = time.time() - time_checkpoint model_generation_time = time.time() - time_checkpoint
logging.info(f"Model generation time: {round(model_generation_time, 1)} s") logging.info(f"Model generation time: {round(model_generation_time, 1)} s")

View File

@@ -1,7 +1,4 @@
using System.Collections; using _PROJECT.Multiplayer.NewBow;
using _PROJECT.Multiplayer.NewBow;
using _PROJECT.Scripts.Bow;
using FishNet.Object;
using UnityEngine; using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit; using UnityEngine.XR.Interaction.Toolkit;

View File

@@ -15,7 +15,7 @@ GameObject:
- component: {fileID: 104473305465913916} - component: {fileID: 104473305465913916}
- component: {fileID: 998178908997684460} - component: {fileID: 998178908997684460}
m_Layer: 0 m_Layer: 0
m_Name: ModelGenerationTestBox m_Name: ModelGenerationBox
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0

View File

@@ -35,7 +35,6 @@ public class VoiceTranscriptionBox : MonoBehaviour
isLoading = false; isLoading = false;
whisper.OnNewSegment += OnNewSegment; whisper.OnNewSegment += OnNewSegment;
whisper.OnProgress += OnProgressHandler;
microphoneRecord.OnRecordStop += OnRecordStop; microphoneRecord.OnRecordStop += OnRecordStop;
} }
@@ -105,11 +104,6 @@ public class VoiceTranscriptionBox : MonoBehaviour
isLoading = false; isLoading = false;
} }
private void OnProgressHandler(int progress)
{
UnityEngine.Debug.Log($"Progress: {progress}%");
}
private void OnNewSegment(WhisperSegment segment) private void OnNewSegment(WhisperSegment segment)
{ {
_buffer += segment.Text; _buffer += segment.Text;

Binary file not shown.