Hello,
I have installed HyperBlend from git with git clone and anaconda in ubuntu.
I have run this code :
from src.leaf_model import interface as LI
set_name = "try_random_p_leaves"
# generates three leaf targets to \HyperBlend\leaf_measurement_sets\try_random_p_leaves\sample_targets
LI.generate_prospect_leaf_random(set_name=set_name, count=3)
# Solve renderable leaf material parameters that produce target reflectance and transmittance
LI.solve_leaf_material_parameters(set_name=set_name, resolution=10, solver='nn')
# After solver has run, check results from HyperBlend\leaf_measurement_sets\try_random_p_leaves\set_result
As a result, it is showing this error
Traceback (most recent call last):
File ~/anaconda3/lib/python3.11/site-packages/spyder_kernels/py3compat.py:356 in compat_exec
exec(code, globals, locals)
File ~/dev/HyperBlend/prod3.py:21
LI.solve_leaf_material_parameters(set_name=set_name, resolution=10, solver='nn')
File ~/dev/HyperBlend/src/leaf_model/interface.py:134 in solve_leaf_material_parameters
r, t = LC._material_params_to_RT(set_name, sample_id, wls, ad, sd, ai, mf)
File ~/dev/HyperBlend/src/leaf_model/leaf_commons.py:103 in _material_params_to_RT
r_wl = DU.get_relative_refl_or_tran(C.imaging_type_refl, wl, base_path=P.path_directory_working(set_name, sample_id))
File ~/dev/HyperBlend/src/utils/data_utils.py:27 in get_relative_refl_or_tran
leaf_mean = get_rend_as_mean(FH.search_by_wl(C.target_type_leaf, imaging_type, wl, base_path))
File ~/dev/HyperBlend/src/data/file_handling.py:195 in search_by_wl
raise FileNotFoundError(f"Could not find {wl} nm image from {folder}.")
FileNotFoundError: Could not find 400.0 nm image from /home/maroun/dev/HyperBlend/leaf_measurement_sets/try_manual_set/sample_results/sample_0/working_temp/rend.
Could you please try to help us solve it?
Thank you
Best,
Maroun