silmae / hyperblend Goto Github PK
View Code? Open in Web Editor NEWHyperBlend is a new type of hyperspectral image simulator based on Blender.
License: MIT License
HyperBlend is a new type of hyperspectral image simulator based on Blender.
License: MIT License
Hi!
Thanks for this implementation, I have been looking to run it since a couple of days but I can't get it to be done. Is there any tutorial or instructions for somebody who is new to this type of software (and blender)? I tried running bs_render_single.py from IDE, from Conda Prompt, and from blender itself, but nothing seems to work.
Also, I tried to run main.py from windows cmd, from my IDE, and from Conda prompt, but it throws errors in references. I tried changing all the references to match what is being called, but I end up with an error that some files (and the directory optimization) does not exist. Tried to run code from the readme, but still can't get to work.
Would be very helpful if somebody can help me through some basic follow up on how to run this implementation.
Best regards!
Hello, I have created the hyperblend environment as mentioned in the readme file but i am not able to import the src . how can i do that?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.