Giter Site home page Giter Site logo

codebox / image_augmentor Goto Github PK

View Code? Open in Web Editor NEW
440.0 10.0 156.0 17 KB

Data augmentation tool for images

Home Page: https://codebox.net/pages/image-augmentation-with-python

Python 100.00%
data-augmentation image-augmentor machine-learning

image_augmentor's Issues

can you help me?a bug

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}

Unable to obtain the augmented Images

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?

ImportError: cannot import name 'cpu_count'

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'

Not getting oputput

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?

it doesnt work from command line

python main.py ./positive fliph' but its telling me in line 57 im not giving enough arguments ain.py ./positive fliph
File "main.py", line 58
print 'Usage: {} ( ...)'.format(sys.argv[0])
^
SyntaxError: invalid syntax
`

Does not work

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

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.