Giter Club home page Giter Club logo

Comments (8)

nuno-faria avatar nuno-faria commented on May 13, 2024 2

Looks about right. The Starry Night painting is too complex to be represented by shapes with varying sizes, therefore in the provided examples I only tested with fixed tiles sizes (i.e. PIXEL_SHIFT = None and RESIZING_SCALES = [0.1]). The reason it too so long is because not only the painting has a high resolution, but also it had to test multiple sizes. Try the same config you used for the painting and apply it to the cake image, the Github logo, or a similiar "simple" one.

As for the second comment, yes. The folder with the tiles must only contain images.

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024 2

Good to see! You can increase RESIZING_SCALESto something like [0.25] or a larger number if you want less detail. I'm going to close this issue since it was resolved. If you have any more questions you can keep posting them here and I will reply.

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024

Basically there were two main types of configs:

  • For the images with "grid" (fixed, cross stitch, minecraft, ...) I used a PIXEL_SHIFT with None;
  • For the other type of images (circles, at, paper clips, ...) I set PIXEL_SHIFT to a fixed tuple like (5, 5) or (2, 2).

Let me know if this solved your issue.

from tiler.

AymanEG avatar AymanEG commented on May 13, 2024

What about RESIZING_SCALES ?
The default value is [0.5, 0.4, 0.3, 0.2, 0.1]

from tiler.

nuno-faria avatar nuno-faria commented on May 13, 2024

Those should yield good results too. I might have used something like [1, 0.75, 0.5, 0.25, 0.1] for some examples. For the grid ones set to a single number, such as [0.5], in order for the algorithm to just work with one tile size.

from tiler.

AymanEG avatar AymanEG commented on May 13, 2024

Got it.

I runned the stary night with circle, it took almost 3 hours to finish , but the out image is some how bugged with extra layer of brightness.

The preview through windows folder is ok
first-result-preview
but when I open the image, I got this:
first-result-out
Run time:
first-result

from tiler.

AymanEG avatar AymanEG commented on May 13, 2024

Also when I use tile folder link:
TILES_FOLDER = "E:\\tiles\\lego" , I got error message:
AttributeError: 'NoneType' object has no attribute 'shape'

So I have to choose sub folder:
TILES_FOLDER = "E:\\tiler-master\\tiles\\lego\\gen_lego_h"

is that normal ?

from tiler.

AymanEG avatar AymanEG commented on May 13, 2024

Got it.

I am happy to share much better results

starry-lego-005-001-none

trump
trump-lego-005-001-none

person
person-lego-005-001-none

from tiler.

Related Issues (20)

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.