Comments (8)
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.
Good to see! You can increase RESIZING_SCALES
to 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.
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.
What about RESIZING_SCALES ?
The default value is [0.5, 0.4, 0.3, 0.2, 0.1]
from tiler.
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.
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
but when I open the image, I got this:
Run time:
from tiler.
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.
Got it.
I am happy to share much better results
from tiler.
Related Issues (20)
- Feature : Use vector image or input and output HOT 1
- "invalid syntax" or "AttributeError: 'Pool' object has no attribute 'starmap'" HOT 1
- AttributeError: 'NoneType' object has no attribute 'shape' HOT 1
- AttributeError: 'NoneType' object has no attribute 'shape' HOT 3
- [Error] - Running tiler.py HOT 1
- TypeError: flip() missing 1 required positional argument: 'axis' HOT 4
- Requesting permission to use some of your Tiles HOT 2
- AttributeError: 'NoneType' object has no attribute 'shape' HOT 10
- Starting Tiler Error HOT 20
- test HOT 2
- Sorry,you've spelt the word wrong. HOT 1
- How do I count the number of each color block used in each picture? HOT 7
- IndexError: tuple index out of range HOT 2
- conf of examples HOT 2
- who can help me about: <python tiler.py path/to/image path/to/tiles_folder/> HOT 3
- Can I batch convert? HOT 2
- It takes a long time HOT 1
- stuck at "Getting and processing boxes" HOT 1
- Not able to create mosaic using human face image (tile image) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiler.