baiwenjia / ukbb_cardiac

Some code for processing and analysing UK Biobank cardiac MR images.
Apache License 2.0
149 stars 65 forks source link

argparse issue for tensorflow 1.6.0 and anaconda python 3.6.3 on Mac OSX 10.13.3 #1

Closed baiwenjia closed 5 years ago

baiwenjia commented 6 years ago

Thanks a lot to Dr Sean Coffey, who has pointed out there might be issue with the module argparse if you run the code deploy_network.py on Mac OSX. He suggested a fix by adding these lines in the beginning of deploy_network.py:

import argparse tf.app.flags._global_parser = argparse.ArgumentParser() tf.app.flags.DEFINE_string('seq_name', 'sa', 'name of sequence')

Then the code works.

asciidiego commented 5 years ago

I had the same error on Ubuntu 18.04, the fix worked. I guess you can close this issue :)

Thanks Dr. Coffey!