Comments (5)
The code has an automatic learning rate adjustment mechanism and early stop mechanism.
Adjustment mechanism: The learning rate is reduced by 50 percent if the loss of 3 epochs in the test set is not decreased
Early stop mechanism: The loss of 20 epochs in the test set does not drop, and the training stops. And keep the best model
# BaseModel.py
if self.conf["train"]["half_lr"]:
self.scheduler = ReduceLROnPlateau(
optimizer=self.optimizer, factor=self.conf["scheduler"]["factor"],
patience=self.conf["scheduler"]["patience"], verbose=self.conf["scheduler"]["verbose"]
)
if self.conf["train"]["early_stop"]:
self.early_stop = EarlyStopping(monitor="val_loss", patience=20, verbose=True)
You can change the corresponding values according to your needs. In my memory, training set losses of -23.5 or more are better
from dccrn.
Thank you. I guess there is some issue with the prediction code? .Even after training for 1 epoch, when I run inference, I get the audio output to be the same as input. I would have expected the output to be worse than the input
from dccrn.
Could you please show your code and results? Is the spectrogram the same?
from dccrn.
Thanks for getting back. I just needed to train more. I am seeing a difference in the spectrogram. Will continue training
from dccrn.
@agunapal can you show me the loss log, why my loss is around 12 in epoch 2?
from dccrn.
Related Issues (19)
- how to reduce the cuda memory? HOT 9
- 关于数据集 HOT 1
- JSONDecodeError HOT 1
- 您好,请问json是如何生成的 HOT 5
- 关于模型训练 HOT 1
- 关于训练数据
- training loss
- 关于json文件
- 代码库请教 HOT 2
- 关于模型输出还原过程中的E,C,R选项 HOT 1
- 发错了
- Hello, I have a question about dataset HOT 2
- download DNS dataset HOT 1
- AttributeError: can't set attribute HOT 16
- Inference code HOT 4
- Question or Bug HOT 3
- 请求数据集 HOT 1
- 模型训练过程中ComplexBatchNorm函数导致内存爆炸 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dccrn.