forked from cgvr/DeltaVR
Compare commits
2 Commits
2c19602e9b
...
b424c6467b
| Author | SHA1 | Date | |
|---|---|---|---|
| b424c6467b | |||
| 409b9fbb51 |
@@ -59,7 +59,7 @@ def generate_no_preview(image_base64: str):
|
||||
print(f"Error: {str(e)}")
|
||||
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:
|
||||
image_data = image_file.read()
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ from datetime import datetime
|
||||
from dotenv import load_dotenv
|
||||
|
||||
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()
|
||||
|
||||
@@ -51,7 +51,7 @@ async def main():
|
||||
print(f"Generated image file: {image_path}")
|
||||
|
||||
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
|
||||
logging.info(f"Model generation time: {round(model_generation_time, 1)} s")
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using System.Collections;
|
||||
using _PROJECT.Multiplayer.NewBow;
|
||||
using _PROJECT.Scripts.Bow;
|
||||
using FishNet.Object;
|
||||
using _PROJECT.Multiplayer.NewBow;
|
||||
using UnityEngine;
|
||||
using UnityEngine.XR.Interaction.Toolkit;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ GameObject:
|
||||
- component: {fileID: 104473305465913916}
|
||||
- component: {fileID: 998178908997684460}
|
||||
m_Layer: 0
|
||||
m_Name: ModelGenerationTestBox
|
||||
m_Name: ModelGenerationBox
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
Binary file not shown.
@@ -35,7 +35,6 @@ public class VoiceTranscriptionBox : MonoBehaviour
|
||||
isLoading = false;
|
||||
|
||||
whisper.OnNewSegment += OnNewSegment;
|
||||
whisper.OnProgress += OnProgressHandler;
|
||||
|
||||
microphoneRecord.OnRecordStop += OnRecordStop;
|
||||
}
|
||||
@@ -105,11 +104,6 @@ public class VoiceTranscriptionBox : MonoBehaviour
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
private void OnProgressHandler(int progress)
|
||||
{
|
||||
UnityEngine.Debug.Log($"Progress: {progress}%");
|
||||
}
|
||||
|
||||
private void OnNewSegment(WhisperSegment segment)
|
||||
{
|
||||
_buffer += segment.Text;
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user