updated tfutil for tensorflow 2.x#23
Open
PsVenom wants to merge 1 commit intoNVlabs:masterfrom
Open
Conversation
some commands were depreciated in 2.x, so I fixed it
atreeleaf
reviewed
Dec 28, 2022
| def create_session(config_dict: dict = None, force_as_default: bool = False) -> tf.compat.v1.Session: | ||
| """Create tf.Session based on config dict.""" | ||
| # Setup TensorFlow config proto. | ||
| cfg = _sanitize_tf_config(config_dict) |
There was a problem hiding this comment.
In line 132, I had to also update
config_proto = tf.compat.v1.ConfigProto()
There was a problem hiding this comment.
hi, do you have full working code for this repo but using tf 2.x?
Author
There was a problem hiding this comment.
@atreeleaf I'll review the codebase again and replace any other depreciated functions. Thanks for bringing this to my attention
There was a problem hiding this comment.
@atreeleaf @PsVenom
Hi all! Is there a running Tensorflow2 compatible StyleGAN2 Colab notebook? Thank you!
|
您好,您发给嘉伟的邮件已经收到。。。
|
1 similar comment
|
您好,您发给嘉伟的邮件已经收到。。。
|
|
Hi all! Is there a running Tensorflow2 compatible StyleGAN2 Colab notebook? Thank you! |
|
您好,您发给嘉伟的邮件已经收到。。。
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
some commands were depreciated in 2.x, so I fixed it by using tf.compat.v1