mit-gfx / diffmat Goto Github PK
View Code? Open in Web Editor NEWPyTorch-based differentiable material graph library for procedural material capture
License: Other
PyTorch-based differentiable material graph library for procedural material capture
License: Other
As title, I'd like to run the test script. It shows that the configuration file for node type: bnw_spots_3 for graph concrete_raw_panels.sbs is missing. Any helps will be appreciated! Thanks!
python3 test_sampler.py sbs/match_v1/concrete_raw_panels.sbs -r test_diffmat
Traceback (most recent call last):
File "test_sampler.py", line 99, in <module>
main()
File "test_sampler.py", line 72, in main
toolkit_path=args.toolkit_path)
File "/usr/local/lib/python3.7/dist-packages/diffmat/translator/graph_trans.py", line 46, in __init__
super().__init__(root)
File "/usr/local/lib/python3.7/dist-packages/diffmat/translator/base.py", line 168, in __init__
self._init_node_translators()
File "/usr/local/lib/python3.7/dist-packages/diffmat/translator/graph_trans.py", line 194, in _init_node_translators
node_config = load_node_config(node_type)
File "/usr/local/lib/python3.7/dist-packages/diffmat/translator/util.py", line 332, in load_node_config
raise FileNotFoundError(f'Configuration file not found for {mode} type: '
FileNotFoundError: Configuration file not found for node type: bnw_spots_3
Hey, I have bought the Adobe Substance 3D Designer 2023 in steam, and installed it on my ubuntu 20.04.
After I give the current toolkit-path and run this command "python test_nodes.py sbs/match_v1/ceramic_tiles_green.sbs", it reminds me that :
So, What went wrong? Do I need to revert to use SAT?
When I use the option "-e" : "python test_nodes.py sbs/match_v1/ceramic_tiles_green.sbs -e", there is no error! Why 0.0?
Hi, and thanks a lot for releasing this code!
Since the license is non-commercial, could you please add a note in the README about the availability of a commercial license for diffmat, as well as a POC at MIT and/or Adobe to discuss that?
I noticed that the input parameter is required: parser.add_argument('input', metavar='FILE', help='Path to the input *.sbs file')
But your paper use a database of procedural materials, and use a special method to search a procedural material. So where is the database and the code of searching?
Sorry to bother you, I'm new to this research field.
Thanks to your reply, best wishes to your research.
Thanks for your excellent work. I have some trouble in testing the library.
I run "pip install .", and then run "pip install -e ." and then Exit the cloned repo and verify package integrity with:
cd ..
python -c "import diffmat; print(diffmat.version)"
(I haven't installed the AS3D or SAT, but it will not affect this issue.)
just run some test
and run the following command:
python .\test_optimizer.py .\sbs\match_v1\bricks.sbs -e -im bricks.jpg
python .\test_hybrid_optimizer.py .\sbs\match_v1\bricks.sbs -e -im bricks.jpg -m combine -ip .\result\bricks\optim_bricks\checkpoints\optimized.pth -o bricks_hyper
The simulated annealing algorithm seems to be unable to find the correct scale parameters.
Thanks for your good work. It's amazing so I want to follow it. But I have some trouble installing the AS3D or SAT.
Is it necessary or optional to install the AS3D and SAT?
If it is necessary, how about just install SAT? (AS3D seems not free)
How to install SAT? I just can find the installation of Pysbs in (https://helpx.adobe.com/substance-3d-sat/pysbs-python-api/getting-started.html) which seems not related to sbscooker and sbsrender.
Thanks for your reply.
hi, i try some sbs files that i download from substance 3d asset website, and i always encounter this problem. can you take a look for me, thanks
python test_nodes.py sbs\mytest\chamfered_concrete_building.sbs -e -b -g
raise FileNotFoundError(f'Configuration file not found for {mode} type: '
FileNotFoundError: Configuration file not found for node type: tile_generator
Thanks for your excellent work. Do you only support the 40 materials (40 sbs files) in the folder 'diffmat/test/sbs/match_v1'?
install_requires=[
'torch>=1.11.0',
'torchvision>=0.12.0',
'numpy>=1.21.5' <----- need a ',' here
'scipy>=1.7.3',
'imageio>=2.9.0',
'pandas>=1.3.5',
'pyyaml>=6.0',
'taichi>=1.3.0'
],
This is a valuable work. But I still have a question, if a certain material (such as metal or wood or fabric) is optimized, will the optimization result still maintain the characteristics of the metal or wood or fabric?
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.