codebox / image_augmentor Goto Github PK
View Code? Open in Web Editor NEWData augmentation tool for images
Home Page: https://codebox.net/pages/image-augmentation-with-python
Data augmentation tool for images
Home Page: https://codebox.net/pages/image-augmentation-with-python
Thanks for your excellent work, it saves me so much time.
Well, I was wondering if you can add the random_crop_and_resize function, and so it will be much more complete.
Thanks again!
When i run python main .py C:\Users\my_pc\Desktop\ansa\model\ fliph flipv I got following op
Thread pool initialised with 3 workers
Processing C:\Users\my_pc\Desktop\ansa\model...
Waiting for workers to complete...
{'processed': 0, 'skipped_augmented': 5, 'skipped_no_match': 1, 'error': 0}
I am expecting fliped image?
I encounter A bug that I cant not fix it , can you help me?
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
-------------------- <class 'ops.rotate.Rotate'>
Traceback (most recent call last):
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
Traceback (most recent call last):
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
Traceback (most recent call last):
Traceback (most recent call last):
-------------------- <class 'ops.rotate.Rotate'>
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
Traceback (most recent call last):
-------------------- <class 'ops.rotate.Rotate'>
Traceback (most recent call last):
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
Traceback (most recent call last):
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
-------------------- <class 'ops.rotate.Rotate'>
-------------------- <class 'ops.rotate.Rotate'>
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
Traceback (most recent call last):
TypeError: 'type' object is not iterable
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
TypeError: 'type' object is not iterable
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
Traceback (most recent call last):
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
Traceback (most recent call last):
Traceback (most recent call last):
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
Traceback (most recent call last):
TypeError: 'type' object is not iterable
-------------------- <class 'ops.rotate.Rotate'>
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
TypeError: 'type' object is not iterable
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
Traceback (most recent call last):
TypeError: 'type' object is not iterable
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
Traceback (most recent call last):
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
TypeError: 'type' object is not iterable
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
TypeError: 'type' object is not iterable
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
TypeError: 'type' object is not iterable
TypeError: 'type' object is not iterable
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
Traceback (most recent call last):
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
TypeError: 'type' object is not iterable
TypeError: 'type' object is not iterable
TypeError: 'type' object is not iterable
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
TypeError: 'type' object is not iterable
Traceback (most recent call last):
TypeError: 'type' object is not iterable
Traceback (most recent call last):
TypeError: 'type' object is not iterable
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
File "data_aug.py", line 43, in work
out_file_name = build_augmented_file_name(f, op_list)
TypeError: 'type' object is not iterable
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
TypeError: 'type' object is not iterable
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
TypeError: 'type' object is not iterable
TypeError: 'type' object is not iterable
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
TypeError: 'type' object is not iterable
TypeError: 'type' object is not iterable
File "data_aug.py", line 35, in build_augmented_file_name
for op in ops:
TypeError: 'type' object is not iterable
TypeError: 'type' object is not iterable
{'processed': 0, 'error': 0, 'skipped_no_match': 0, 'skipped_augmented': 0}
Hey, I ran the code as per the instructions and got the following output
python main.py ./test flipv
Thread pool initialised with 11 workers
Processing ./test...
Waiting for workers to complete...
{'processed': 0, 'error': 0, 'skipped_no_match': 1, 'skipped_augmented': 0}
I did check the other issue. This is the first time I ran the code with a single image in a folder called test.
I think the problem is that my image does not have a .jpg or .jpeg in its name. It just says img_0. Is there a way around this issue?
Hello,
I run this command line but not working ....
python main.py ./test flipv
I want to augment my bulk of images in a folder.
When I run the main code, Iam getting cpu-count error:
python main.py ./inputfolder fliph flipv
Traceback (most recent call last):
File "main.py", line 3, in
from multiprocessing.dummy import Pool, cpu_count
ImportError: cannot import name 'cpu_count'
I opened a folder named "my_images" and there are 3 images on that folder.All of them are .jpg
format.When i use your examples,they does not work.The repo does not work.
C:\image_augmentor-master>python main.py ./my_images fliph flipv
File "main.py", line 58
print 'Usage: {} <image directory> <operation> (<operation> ...)'.format(sys.argv[0])
^
SyntaxError: invalid syntax
If the problem is cause of me please tell.
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.