ZhenweiWang commited on
Commit
2bbacf3
·
verified ·
1 Parent(s): 4c5a78b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1406,7 +1406,7 @@ with gr.Blocks(
1406
 
1407
  # Load prediction data
1408
  prediction_data = np.load(prediction_file_path, allow_pickle=True)
1409
- predictions = {key: prediction_data[key] for key in prediction_data.keys()}
1410
 
1411
  # Generate GLB scene file path (named based on parameter combination)
1412
  safe_frame_name = frame_selector.replace('.', '_').replace(':', '').replace(' ', '_')
@@ -1478,6 +1478,7 @@ with gr.Blocks(
1478
  images_directory = os.path.join(workspace_dir, "images")
1479
  image_file_paths = [os.path.join(images_directory, path) for path in os.listdir(images_directory)]
1480
  img = load_and_preprocess_images(image_file_paths)
 
1481
 
1482
  # Regenerate processed data with new filter settings
1483
  refreshed_data = {}
 
1406
 
1407
  # Load prediction data
1408
  prediction_data = np.load(prediction_file_path, allow_pickle=True)
1409
+ predictions = {key: prediction_data[key] for key in prediction_data.keys() if key != 'splats'}
1410
 
1411
  # Generate GLB scene file path (named based on parameter combination)
1412
  safe_frame_name = frame_selector.replace('.', '_').replace(':', '').replace(' ', '_')
 
1478
  images_directory = os.path.join(workspace_dir, "images")
1479
  image_file_paths = [os.path.join(images_directory, path) for path in os.listdir(images_directory)]
1480
  img = load_and_preprocess_images(image_file_paths)
1481
+ img = img.detach().cpu().numpy()
1482
 
1483
  # Regenerate processed data with new filter settings
1484
  refreshed_data = {}