Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
animegan2-pytorch
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
git
animegan2-pytorch
Commits
87c26ac9
Commit
87c26ac9
authored
Feb 17, 2021
by
sr9
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo fixed
parent
00ee6523
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
convert_weights.py
convert_weights.py
+1
-1
No files found.
convert_weights.py
View file @
87c26ac9
...
...
@@ -20,7 +20,7 @@ def load_tf_weights(tf_path):
with
tf
.
Session
(
config
=
tf
.
ConfigProto
(
allow_soft_placement
=
True
,
device_count
=
{
'GPU'
:
0
}))
as
sess
:
ckpt
=
tf
.
train
.
get_checkpoint_state
(
tf_path
)
assert
ckpt
is
not
None
and
ckpt
.
model_checkpoint_path
is
not
None
,
f
"Failed to load checkpoint {
checkpoint_dir
}"
assert
ckpt
is
not
None
and
ckpt
.
model_checkpoint_path
is
not
None
,
f
"Failed to load checkpoint {
tf_path
}"
saver
.
restore
(
sess
,
ckpt
.
model_checkpoint_path
)
print
(
f
"Tensorflow model checkpoint {ckpt.model_checkpoint_path} loaded"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment