Conditional-GAN
Conditional-GAN copied to clipboard
AttributeError: _parse_flags
Error (My tensorflow version is 1.5)
File "main.py", line 35, in
Hi,
I think the problem is the Tensroflow version. They might change the _parse_flags() API in the 1.5 version. To solve this issue, just use the 1.0 version, or you need to follow the new version API to revise several codes.
-Han
ayushman-shopin [email protected] 於 2018年3月26日 上午1:11 寫道:
Error (My tensorflow version is 1.5)
File "main.py", line 35, in FLAGS._parse_flags() File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/flags.py", line 85, in getattr return wrapped.getattr(name) File "/usr/local/lib/python3.5/dist-packages/absl/flags/_flagvalues.py", line 470, in getattr raise AttributeError(name) AttributeError: _parse_flags
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/m516825/Conditional-GAN/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ALkFYFEC5dTCz0bncx8w8JGsGwmdVM-cks5th8_LgaJpZM4S6OB2.
I have adjusted the code to work in newer TF versions.
ReplaceFLAGS._parse_flags()
with FLAGS(sys.argv)
works well on 1.9 for me.
I have adjusted the code to work in newer TF versions.
Hi, I think the problem is the Tensroflow version. They might change the _parse_flags() API in the 1.5 version. To solve this issue, just use the 1.0 version, or you need to follow the new version API to revise several codes. … -Han ayushman-shopin @.***> 於 2018年3月26日 上午1:11 寫道: Error (My tensorflow version is 1.5) File "main.py", line 35, in FLAGS._parse_flags() File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/flags.py", line 85, in getattr return wrapped.getattr(name) File "/usr/local/lib/python3.5/dist-packages/absl/flags/_flagvalues.py", line 470, in getattr raise AttributeError(name) AttributeError: _parse_flags — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#2>, or mute the thread https://github.com/notifications/unsubscribe-auth/ALkFYFEC5dTCz0bncx8w8JGsGwmdVM-cks5th8_LgaJpZM4S6OB2.
I have downgraded my python version and tensorflow to be 1.0 version, but there is still error:
Traceback (most recent call last):
File "main.py", line 80, in
do you have any idea how to solve it?