Revert "Revert "allow upport for inputs.mesh""
This reverts commit 9c93d9648f.
This commit is contained in:
@@ -15,6 +15,10 @@ class threeDInferenceInputs:
|
||||
"mask": ("IMAGE", {
|
||||
"tooltip": "Optional mask image to specify a region of interest in the input image for 3D generation."
|
||||
}),
|
||||
"meshFile": ("STRING", {
|
||||
"default": "",
|
||||
"tooltip": "Base64 data URI of mesh file (.glb or .ply) from Runware Load Mesh, or media UUID from Runware Media Upload.",
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +32,7 @@ class threeDInferenceInputs:
|
||||
"""Create 3D inference inputs from provided parameters"""
|
||||
image = kwargs.get("image", None)
|
||||
mask = kwargs.get("mask", None)
|
||||
mesh_file = kwargs.get("meshFile", "")
|
||||
|
||||
inputs = {}
|
||||
|
||||
@@ -37,6 +42,9 @@ class threeDInferenceInputs:
|
||||
if mask is not None:
|
||||
inputs["mask"] = rwUtils.convertTensor2IMG(mask)
|
||||
|
||||
if mesh_file and isinstance(mesh_file, str) and mesh_file.strip():
|
||||
inputs["meshFile"] = mesh_file.strip()
|
||||
|
||||
return (inputs,)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user