tylerhutcherson / synthetic-images Goto Github PK
View Code? Open in Web Editor NEWA synthetic image augmentation library for object detection tasks.
License: Apache License 2.0
A synthetic image augmentation library for object detection tasks.
License: Apache License 2.0
Making synthetic images.
Traceback (most recent call last):
File "/home/vk/synthetic-images/create.py", line 134, in
obj_h, obj_w, x_pos, y_pos = get_obj_positions(obj=obj_img, bkg=bkg_img, count=count_per_size)
File "/home/vk/synthetic-images/create.py", line 51, in get_obj_positions
x_positions.extend(list(np.random.randint(0, max_x, count)))
File "mtrand.pyx", line 748, in numpy.random.mtrand.RandomState.randint
File "_bounded_integers.pyx", line 1247, in numpy.random._bounded_integers._rand_int64
ValueError: high <= 0
Hello brother, thank you for this script. But I found an error in the object annotation, where the box labels don't match their proper position. I think the algorithm for determining annotation coordinates is incorrect. Can you help me?
The objects are png files with 4th channel for transparency. The output images from the script have the object pasted on the background but instead of the transparency it has a black background.
Hello there
first of all: thank you for your script.
now: i am able to generate images with my object (drone) on different backgrounds.
now: i need the xml annotation files. is it possible to automatically generate these?
thank you*
I'm getting about 300 images into generating them and then I consistently get this error
Traceback (most recent call last):
File "create.py", line 134, in <module>
obj_h, obj_w, x_pos, y_pos = get_obj_positions(obj=obj_img, bkg=bkg_img, count=count_per_size)
File "create.py", line 51, in get_obj_positions
x_positions.extend(list(np.random.randint(0, max_x, count)))
File "mtrand.pyx", line 746, in numpy.random.mtrand.RandomState.randint
File "_bounded_integers.pyx", line 1254, in numpy.random._bounded_integers._rand_int64
ValueError: low >= high
Is there anything I can do to debug this? I assume I have a bad image somewhere but don't know what would be wrong with it
Thanks.
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.