Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
78ccd295
Commit
78ccd295
authored
Dec 05, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename common.py to saver.py in callbacks
parent
3fa1a499
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
3 deletions
+6
-3
.gitignore
.gitignore
+1
-0
examples/GAN/README.md
examples/GAN/README.md
+2
-1
examples/GAN/demo/InfoGAN-mnist.jpg
examples/GAN/demo/InfoGAN-mnist.jpg
+0
-0
tensorpack/callbacks/param.py
tensorpack/callbacks/param.py
+2
-1
tensorpack/callbacks/saver.py
tensorpack/callbacks/saver.py
+1
-1
No files found.
.gitignore
View file @
78ccd295
...
@@ -74,3 +74,4 @@ checkpoint
...
@@ -74,3 +74,4 @@ checkpoint
*.json
*.json
*.prototxt
*.prototxt
snippet
snippet
*.txt
examples/GAN/README.md
View file @
78ccd295
...
@@ -33,4 +33,5 @@ It requires the datasets released by the original authors.
...
@@ -33,4 +33,5 @@ It requires the datasets released by the original authors.
Reproduce a mnist experiement in InfoGAN.
Reproduce a mnist experiement in InfoGAN.
By assuming 10 latent variables corresponding to a categorical distribution and maximizing mutual information,
By assuming 10 latent variables corresponding to a categorical distribution and maximizing mutual information,
the network unsupervisedly learns to map the 10 variables to 10 digits.
the network learns to map the 10 variables to 10 digits in a completely unsupervised way.

examples/GAN/demo/InfoGAN-mnist.jpg
0 → 100644
View file @
78ccd295
39 KB
tensorpack/callbacks/param.py
View file @
78ccd295
...
@@ -172,7 +172,8 @@ class ScheduledHyperParamSetter(HyperParamSetter):
...
@@ -172,7 +172,8 @@ class ScheduledHyperParamSetter(HyperParamSetter):
def
__init__
(
self
,
param
,
schedule
,
interp
=
None
):
def
__init__
(
self
,
param
,
schedule
,
interp
=
None
):
"""
"""
:param schedule: [(epoch1, val1), (epoch2, val2), (epoch3, val3), ...]
:param schedule: [(epoch1, val1), (epoch2, val2), (epoch3, val3), ...]
The value is fixed to val1 in epoch [epoch1, epoch2), and so on.
(ep, val) means set the param to `val` after the `ep`th epoch.
If epoch == 0, the value is set before training.
:param interp: None: no interpolation. 'linear': linear interpolation
:param interp: None: no interpolation. 'linear': linear interpolation
"""
"""
schedule
=
[(
int
(
a
),
float
(
b
))
for
a
,
b
in
schedule
]
schedule
=
[(
int
(
a
),
float
(
b
))
for
a
,
b
in
schedule
]
...
...
tensorpack/callbacks/
common
.py
→
tensorpack/callbacks/
saver
.py
View file @
78ccd295
# -*- coding: UTF-8 -*-
# -*- coding: UTF-8 -*-
# File:
common
.py
# File:
saver
.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
import
tensorflow
as
tf
import
tensorflow
as
tf
...
...
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