NVlabs / nvdiffrec

Official code for the CVPR 2022 (oral) paper "Extracting Triangular 3D Models, Materials, and Lighting From Images".
Other
2.09k stars 222 forks source link

ValueError: Could not find a backend to open data/irrmaps/aerodynamics_workshop_2k.hdr with iomode ri. #105

Closed andrewyguo closed 1 year ago

andrewyguo commented 1 year ago

I am getting this when I run:

python train.py  --config configs/bob.json 

This is the full error log:

~/nvdiffrec$ python train.py  --config configs/bob.json 
Config / Flags:
---------
config configs/bob.json
iter 1000
batch 4
spp 1
layers 1
train_res [512, 512]
display_res [512, 512]
texture_res [1024, 1024]
display_interval 0
save_interval 100
learning_rate [0.03, 0.003]
min_roughness 0.08
custom_mip False
random_textures True
background white
loss logl1
out_dir out/bob
ref_mesh data/bob/bob_tri.obj
base_mesh None
validate False
mtl_override None
dmtet_grid 64
mesh_scale 2.1
env_scale 2.0
envmap data/irrmaps/aerodynamics_workshop_2k.hdr
display None
camera_space_light False
lock_light False
lock_pos False
sdf_regularizer 0.2
laplace relative
laplace_scale 10000.0
pre_load True
kd_min [0.0, 0.0, 0.0, 0.0]
kd_max [1.0, 1.0, 1.0, 1.0]
ks_min [0, 0.25, 0]
ks_max [1.0, 1.0, 1.0]
nrm_min [-1.0, -1.0, 0.0]
nrm_max [1.0, 1.0, 1.0]
cam_near_far [0.1, 1000.0]
learn_light True
local_rank 0
multi_gpu False
---------
DatasetMesh: ref mesh has 10688 triangles and 5344 vertices

ValueError: Could not find a backend to open `data/irrmaps/aerodynamics_workshop_2k.hdr`` with iomode `ri`.
andrewyguo commented 1 year ago

Turns out, I forgot to run:

imageio_download_bin freeimage

After running this, I was able to solve my error