Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diffwave
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maria Guaranda-Cabezas
diffwave
Commits
c7040c8c
Commit
c7040c8c
authored
1 year ago
by
Maria Guaranda-Cabezas
Browse files
Options
Downloads
Patches
Plain Diff
adds corrections of params and summary writer
parent
2cc0b801
No related branches found
No related tags found
1 merge request
!3
Inference
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/diffwave/learner.py
+1
-1
1 addition, 1 deletion
src/diffwave/learner.py
src/diffwave/params.py
+1
-1
1 addition, 1 deletion
src/diffwave/params.py
with
2 additions
and
2 deletions
src/diffwave/learner.py
+
1
−
1
View file @
c7040c8c
...
...
@@ -148,7 +148,7 @@ class DiffWaveLearner:
def
_write_summary
(
self
,
step
,
features
,
loss
):
writer
=
self
.
summary_writer
or
SummaryWriter
(
self
.
model_dir
,
purge_step
=
step
)
# the following line will print a warning if the audio amplitude is out of range
writer
.
add_audio
(
'
feature/audio
'
,
features
[
'
audio
'
][
0
],
step
,
sample_rate
=
self
.
params
.
sample_rate
)
#
writer.add_audio('feature/audio', features['audio'][0], step, sample_rate=self.params.sample_rate)
if
not
self
.
params
.
unconditional
:
writer
.
add_image
(
'
feature/spectrogram
'
,
torch
.
flip
(
features
[
'
spectrogram
'
][:
1
],
[
1
]),
step
)
writer
.
add_scalar
(
'
train/loss
'
,
loss
,
step
)
...
...
This diff is collapsed.
Click to expand it.
src/diffwave/params.py
+
1
−
1
View file @
c7040c8c
...
...
@@ -34,7 +34,7 @@ class AttrDict(dict):
params
=
AttrDict
(
# Training params
batch_size
=
1
6
,
batch_size
=
6
4
,
learning_rate
=
2e-4
,
max_grad_norm
=
None
,
...
...
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