Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

how to run the model on a single image pair? #4

Closed
suljaxm opened this issue Oct 21, 2018 · 6 comments
Closed

how to run the model on a single image pair? #4

suljaxm opened this issue Oct 21, 2018 · 6 comments

Comments

@suljaxm
Copy link

suljaxm commented Oct 21, 2018

I type the command on the terminal, as follows “python mpi_from_images.py image1=./XXX image2=./XXXX” , but it is error.
Could you please help me. Also I can't use any other code....

@olivertai
Copy link

Try
python mpi_from_images.py
--image1 /path_to_image1
--image2 /path_to_image2
--output_dir ./tmp/result

@suljaxm
Copy link
Author

suljaxm commented Oct 24, 2018

Thank you for your prompt reply, but when I tried your way, it was still error.
The error :

Traceback (most recent call last):
File "mpi_from_images.py", line 64, in
flags.DEFINE_list(
AttributeError: module 'tensorflow.python.platform.flags' has no attribute 'DEFINE_list'

@olivertai
Copy link

I have encountered this problem too. It seems that we don't have attribute "DEFINE_list".
Try
changing "DEFINE_list" to "DEFINE_string", and use another list to read the values
render_list = [float(x) for x in flags.FLAGS.render_multiples.split(',')]
Then replace the original usage in the code.
around line 220:
max_multiple = max(abs(float(m)) for m in render_list)
around line 280:
for multiple in render_list:
And try running again.

@suljaxm
Copy link
Author

suljaxm commented Oct 25, 2018

It's ok, thanks so much to you.

@snaves
Copy link
Contributor

snaves commented Oct 26, 2018

Thanks for the feedback -- note that this should now be fixed in 3eb2f9e.

Please let us know if you still see a problem related to this issue.

@snaves snaves reopened this Oct 26, 2018
@snaves snaves closed this as completed Oct 26, 2018
@suljaxm
Copy link
Author

suljaxm commented Oct 27, 2018

ok

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

No branches or pull requests

4 participants