YudongGuo / AD-NeRF

This repository contains a PyTorch implementation of "AD-NeRF: Audio Driven Neural Radiance Fields for Talking Head Synthesis".
MIT License
1.03k stars 173 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '/home/zoloz/hangke/AD-NeRF/dataset/Obama/aud.npy' #110

Open Prometheus945 opened 2 years ago

Prometheus945 commented 2 years ago

Hello, author. I also encountered a problem when running rendering. python NeRFs/TorsoNeRF/run nerf. py --config dataset/$id/TorsoNeRFTest config. txt --aud file=dataset/$id/aud. npy --test size=300 This missing 'aud. NPY' The error is as follows: traceback (most recent call last): File "NeRFs/HeadNeRF/run_nerf.py", line 965, in train() File "NeRFs/HeadNeRF/run_nerf.py", line 655, in train args. datadir, args.testskip) File "/home/zoloz/hangke/AD-NeRF/NeRFs/HeadNeRF/loadaudface.py", line 37, in load audface data aud features = np.load(os.path.join(basedir, 'aud.npy')) File "/home/zoloz/anaconda3/envs/adnerf/lib/python3.7/site-packages/numpy/lib/npyio.py", line 417, in load fid = stack. enter_ context(open(os_fspath(file), "rb")) FileNotFoundError: [Errno 2] No such file or directory: '/home/zoloz/hangke/AD-NeRF/dataset/Obama/aud.npy'

exceedzhang commented 1 year ago

The reason for the error is that you did not generate a sound feature file during data processing. Regenerate sound feature file aud.npy, you run: python data_util/process_data.py --id=Obama --step=0