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

Error when run order.py #7

Open
CGod1991 opened this issue Mar 27, 2019 · 1 comment
Open

Error when run order.py #7

CGod1991 opened this issue Mar 27, 2019 · 1 comment

Comments

@CGod1991
Copy link

CGod1991 commented Mar 27, 2019

I was perform the inference on my own semantic masks with resolution "1024 * 2048". According the "Inference" part says, first run test_connect_component_mask.m、search_segments.m、test_generate_transform.m、transformation.py and test_generate_order.m, it's all good. But when run the order.py i got this error:
Traceback (most recent call last): File "/home/x00478666/pycharm-community-2018.2/helpers/pydev/pydevd.py", line 1664, in <module> main() File "/home/x00478666/pycharm-community-2018.2/helpers/pydev/pydevd.py", line 1658, in main globals = debugger.run(setup['file'], None, None, is_module) File "/home/x00478666/pycharm-community-2018.2/helpers/pydev/pydevd.py", line 1068, in run pydev_imports.execfile(file, globals, locals) # execute the script File "/home/x00478666/pycharm-community-2018.2/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/home/distributed-training/x00478666/SIMS/SIMS-master/python_code/order.py", line 259, in <module> sess.run(proposal_score, feed_dict={data: tmp_data})) ValueError: could not broadcast input array from shape (4,5,20) into shape (1,20)

and in order.py i set this:
batch_size = 1 crop_size_h = 1024 crop_size_w = 2048 input_dim = 6

Did i miss something?
Best regards.

@xjqicuhk
Copy link
Owner

xjqicuhk commented Mar 31, 2019 via email

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

2 participants