Coder Social home page Coder Social logo

diffmat's People

Contributors

liangs111 avatar polar1s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

diffmat's Issues

can't match a real image

just run some test

target image is
bricks

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 

optimized image is
optimized

The simulated annealing algorithm seems to be unable to find the correct scale parameters.

Node configuration of generator 'fractal_sum_4' does not exist. Revert to use SAT.

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 :
image

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?

AttributeError: module 'diffmat' has no attribute '__version__'

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.)

But! module 'diffmat' has no attribute 'version'
image

FileNotFoundError: Configuration file not found for node type: tile_generator

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

Discuss availability of a commercial license in the README

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?

Configuration file not found for node type: bnw_spots_3

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

sbs file missing

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.

the installation of Substance 3D Automation Tookit

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.