Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stylegan2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dsenkin
stylegan2
Commits
4b9eeba4
Commit
4b9eeba4
authored
4 years ago
by
Peter Baylies
Browse files
Options
Downloads
Patches
Plain Diff
Test nvcc on runway
parent
4109f04b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
runway_model.py
+3
-0
3 additions, 0 deletions
runway_model.py
test_nvcc
+0
-0
0 additions, 0 deletions
test_nvcc
with
3 additions
and
0 deletions
runway_model.py
+
3
−
0
View file @
4b9eeba4
...
...
@@ -3,12 +3,15 @@ import numpy as np
import
tensorflow
as
tf
import
dnnlib.tflib
as
tflib
import
runway
import
os
fmt
=
dict
(
func
=
tflib
.
convert_images_to_uint8
,
nchw_to_nhwc
=
True
)
@runway.setup
(
options
=
{
'
checkpoint
'
:
runway
.
file
(
extension
=
'
.pkl
'
)})
def
setup
(
opts
):
global
Gs
os
.
system
(
"
./test_nvcc
"
)
os
.
system
(
"
nvcc test_nvcc.cu -o test_nvcc -run
"
)
tflib
.
init_tf
()
with
open
(
opts
[
'
checkpoint
'
],
'
rb
'
)
as
file
:
_G
,
_D
,
Gs
=
pickle
.
load
(
file
,
encoding
=
'
latin1
'
)
...
...
This diff is collapsed.
Click to expand it.
test_nvcc
0 → 100755
+
0
−
0
View file @
4b9eeba4
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment