Skip to content

The flag 'log_dir' is defined twice #2

@GabrielLin

Description

@GabrielLin

When I run train.py in HabNet_MC, I am facing the following issues:

WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
  * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
  * https://github.com/tensorflow/addons
  * https://github.com/tensorflow/io (for I/O related ops)
If you depend on functionality not listed there, please file an issue.

Traceback (most recent call last):
  File "train.py", line 22, in <module>
    """Path to log folder""")
  File "/home/XXXX/.conda/envs/py36habnet/lib/python3.6/site-packages/tensorflow_core/python/platform/flags.py", line 58, in wrapper
    return original_function(*args, **kwargs)
  File "/home/XXXX/.conda/envs/py36habnet/lib/python3.6/site-packages/absl/flags/_defines.py", line 270, in DEFINE_string
    return DEFINE(parser, name, default, help, flag_values, serializer, **args)
  File "/home/XXXX/.conda/envs/py36habnet/lib/python3.6/site-packages/absl/flags/_defines.py", line 103, in DEFINE
    module_name)
  File "/home/XXXX/.conda/envs/py36habnet/lib/python3.6/site-packages/absl/flags/_defines.py", line 128, in DEFINE_flag
    fv[flag.name] = flag
  File "/home/XXXX/.conda/envs/py36habnet/lib/python3.6/site-packages/absl/flags/_flagvalues.py", line 438, in __setitem__
    raise _exceptions.DuplicateFlagError.from_flag(name, self)
absl.flags._exceptions.DuplicateFlagError: The flag 'log_dir' is defined twice. First from absl.logging, Second from train.py.  Description from first occurrence: directory to write logfiles into

Could you help? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions