Skip to content

TypeError: read_img() takes exactly 1 argument (2 given)Β #1

@kthordarson

Description

@kthordarson

When training new model, I get this error:

Traceback (most recent call last):
File "/home/kth/Downloads/pycharm-community-2017.3.3/helpers/pydev/pydevd.py", line 1668, in
main()
File "/home/kth/Downloads/pycharm-community-2017.3.3/helpers/pydev/pydevd.py", line 1662, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/home/kth/Downloads/pycharm-community-2017.3.3/helpers/pydev/pydevd.py", line 1072, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/kth/deepstuff/MeuralPaint/trainstyle.py", line 133, in
main()
File "/home/kth/deepstuff/MeuralPaint/trainstyle.py", line 116, in main
for preds, losses, i, epoch in optimize(*args, **kwargs):
File "/home/kth/deepstuff/MeuralPaint/optimize.py", line 112, in optimize
X_batch[j] = read_img(img_p, (256,256,3)).astype(np.float32)
TypeError: read_img() takes exactly 1 argument (2 given)

def read_img(src)
What values are those extra arguments getting passed to read_img ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions