Views
No views yet
1conda create -n fossa python=3.8
2conda activate fossapip install -r requirements.txt1cd power_exp_psf
2
3# Build and install the extension
4python setup.py build_ext --inplace
5
6# Verify successful installation
7python - <<'PY'
8import torch
9try:
10 import power_exp_psf_cuda
11 import os
12 path = power_exp_psf.__file__
13 if os.path.exists(path):
14 print(f"SUCCESS: power_exp_psf_cuda loaded from {path}")
15 else:
16 print(f"ERROR: module loaded but file does not exist at {path}")
17except Exception as e:
18 print(f"IMPORT FAILED: {e}")
19PY
20
21cd ..
22
23# Add power_exp_psf as a search directory for imports
24export PYTHONPATH=$PWD/power_exp_psf:$PYTHONPATHdataset/datasets1cd dataset/datasets
2wget https://huggingface.co/datasets/Ruicheng/monocular-geometry-evaluation/resolve/main/HAMMER.zip
3unzip HAMMER.zip
4rm -f HAMMER.zip
5cd ../..1cd dataset/datasets
2mkdir ddff12_val_generation
3cd ddff12_val_generation
4mkdir third_partbash dist_val.sh --encoder [VITS/VITB] --resumed_from [NAME OF PARAMETERS] --val_loader_config_choice [VAL_CONFIG_CHOICE]resumed_from='model_name' # automatically pull from venkatsubra/model_nameresumed_from='/path/to/model.pth'nvcc not found / CUDA extension build failsnvcc available.1export CUDA_HOME=/usr/local/cuda-12.6
2export PATH="$CUDA_HOME/bin:$PATH"
3export LD_LIBRARY_PATH="$CUDA_HOME/lib64:$LD_LIBRARY_PATH"1@article{ZeroShotDepthFromDefocus,
2 author = {Zuo, Yiming and Wen, Hongyu and Subramanian, Venkat and Chen, Patrick and Kayan, Karhan and Bijelic, Mario and Heide, Felix and Deng, Jia},
3 title = {Zero-Shot Depth from Defocus},
4 journal = {arXiv preprint arXiv:2603.26658},
5 year = {2026},
6 url = {https://arxiv.org/abs/2603.26658}
7}