Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kthordarson opened this issue Feb 27, 2018 · 0 comments
Open

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

kthordarson opened this issue Feb 27, 2018 · 0 comments

Comments

@kthordarson
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant