crevelop commited on
Commit
a48a087
·
unverified ·
1 Parent(s): 1dd580d

Revert "log missing fbx"

Browse files

This reverts commit 535b47b1d3832d96d1f2035efb70af55cae00489.

Files changed (1) hide show
  1. app.py +1 -26
app.py CHANGED
@@ -230,32 +230,7 @@ def run_inference_python(
230
  else:
231
  all_files = list(Path(output_file).parent.rglob("*"))
232
  print(f"Available files: {[str(f) for f in all_files]}")
233
-
234
- # Try to find any FBX files
235
- fbx_files = list(Path(output_file).parent.rglob("*.fbx"))
236
- print(f"FBX files found: {[str(f) for f in fbx_files]}")
237
-
238
- # Try to find skeleton-related files
239
- skeleton_files = list(Path(output_file).parent.rglob("*skeleton*"))
240
- print(f"Skeleton-related files: {[str(f) for f in skeleton_files]}")
241
-
242
- # Check for any GLB files (might be generated instead of FBX)
243
- glb_files = list(Path(output_file).parent.rglob("*.glb"))
244
- print(f"GLB files found: {[str(f) for f in glb_files]}")
245
-
246
- # Check for files in subdirectories that match input name
247
- input_name_stem = Path(input_file).stem
248
- input_subdir_files = list(Path(output_file).parent.rglob(f"{input_name_stem}/*"))
249
- print(f"Files in {input_name_stem} subdirectory: {[str(f) for f in input_subdir_files]}")
250
-
251
- if fbx_files:
252
- print(f"Using first available FBX file: {fbx_files[0]}")
253
- actual_output_file = fbx_files[0]
254
- elif glb_files:
255
- print(f"Using first available GLB file: {glb_files[0]}")
256
- actual_output_file = glb_files[0]
257
- else:
258
- raise RuntimeError(f"No skeleton file found. Expected FBX at: {actual_output_file}")
259
 
260
  # Copy to the expected output location
261
  if actual_output_file != Path(output_file):
 
230
  else:
231
  all_files = list(Path(output_file).parent.rglob("*"))
232
  print(f"Available files: {[str(f) for f in all_files]}")
233
+ raise RuntimeError(f"Skeleton FBX file not found. Expected at: {actual_output_file}")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
 
235
  # Copy to the expected output location
236
  if actual_output_file != Path(output_file):