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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dsenkin
stylegan2
Commits
d61b6fa4
Commit
d61b6fa4
authored
5 years ago
by
Shawn Presser
Browse files
Options
Downloads
Patches
Plain Diff
Add train_tpu.sh example
parent
cc704aa1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
train_tpu.sh
+34
-0
34 additions, 0 deletions
train_tpu.sh
with
34 additions
and
0 deletions
train_tpu.sh
0 → 100644
+
34
−
0
View file @
d61b6fa4
#!/bin/bash
source
"
$HOME
/bin/activate-tf1"
set
-e
export
TPU_NAME
=
grpc://0.tcp.ngrok.io:15992
export
NOISY
=
1
export
DEBUG
=
1
export
TPU_NAME
=
grpc://0.tcp.ngrok.io:17042
export
RESUME_PKL
=
./results/00035-stylegan2-animefaces-1gpu-config-a/network-snapshot-000398.pkl
export
RESUME_KIMG
=
431.1
export
RESUME_TIME
=
23613
# 6h33m33s
export
TPU_NAME
=
grpc://0.tcp.ngrok.io:18248
export
RESUME_PKL
=
./results/00039-stylegan2-animefaces-1gpu-config-a/network-snapshot-000527.pkl
export
RESUME_KIMG
=
575.5
export
RESUME_TIME
=
`
math 8
*
3600 + 13
*
60 + 49
`
# 8h 13m 49s
export
TPU_NAME
=
grpc://0.tcp.ngrok.io:15328
export
RESUME_PKL
=
./results/00041-stylegan2-animefaces-1gpu-config-a/network-snapshot-000716.pkl
export
RESUME_KIMG
=
716.5
export
RESUME_TIME
=
`
math 10
*
3600 + 13
*
60 + 49
`
# 10h 13m 49s
#config="config-f" # StyleGAN 2
config
=
"config-a"
# StyleGAN 1
data_dir
=
gs://sgappa-multi/stylegan-encoder/datasets
dataset
=
animefaces
mirror
=
false
metrics
=
none
set
-x
exec
python3
-m
pdb
-c
continue
run_training.py
--data-dir
"
${
data_dir
}
"
--config
=
"
${
config
}
"
--dataset
=
"
${
dataset
}
"
--mirror-augment
=
"
${
mirror
}
"
--metrics
=
"
${
metrics
}
"
"
$@
"
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