Depth-Pro-in-Meters / history.md
A19grey's picture
updated thresholds options range
f49612a
|
raw
history blame
2.12 kB

Change Log

2024-10-05 22:00 PST

Infinite Image Reloading Issue

  • Problem: After recent changes, dragging an image into the interface causes it to flicker and continuously reload. The depth prediction does not run.
  • Suspected cause: Recent modifications to the input handling in the Gradio interface, particularly the input_image.change event.
  • Next steps: Revert the changes to the input handling and investigate a different approach to manage the image path.

2024-10-05 21:20 PST

3D Model Generation File Access Error

  • Problem: When attempting to generate the 3D model, an error occurred: "[Errno 2] No such file or directory: '/tmp/tmppgls861k.png'"
  • This suggests that the temporary file created during the depth map generation is not accessible or has been deleted before the 3D model generation process.
  • Next steps: Investigate the file handling in the create_3d_model function and ensure temporary files are properly managed and accessible.

2024-10-05 21:13 PST

CUDA Initialization Error Fix

  • Problem: CUDA was being initialized in the main process, causing an error in the Spaces Stateless GPU environment.
  • Changes made:
    1. Modified np.savetxt to ensure depth is converted to a CPU numpy array if it's a torch.Tensor.
    2. Explicitly converted focallength_px to a float.
    3. Added more print statements throughout the predict_depth function for improved logging and debugging.
    4. Added a print statement just before returning from the predict_depth function to log all return values.
  • These changes aim to prevent CUDA initialization in the main process and provide more detailed logging for troubleshooting.

2024-10-05 22:30 PST

3D Model Colorization and Thin Threshold Adjustment

  • Problem 1: The generated 3D model lacks proper colorization from the original image.
  • Problem 2: The range for the 'thin' threshold slider may need adjustment, and its units are unclear.
  • Next steps:
    1. Investigate and fix the texture mapping in the 3D model generation process.
    2. Clarify the units for the thin threshold and consider adjusting its range.