Spaces:
Running
on
Zero
Running
on
Zero
# Change Log | |
## 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. | |