mangelroman / audio2score Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
When I follow each step you show on the instruction page, I try to use the command you give to reproduce and train my model, but I get the following error:
$ ./runtrain.sh config/quartets.cfg manifest_id model_id
Traceback (most recent call last):
File "train.py", line 51, in
model_name = config['train']['model']
File "/home/zhaiyunfan/anaconda3/envs/a2s/lib/python3.7/configparser.py", line 958, in getitem
raise KeyError(key)
KeyError: 'train'
can you give me a hand?
Ubuntu 18.04.4 LTS
python 3.7
I ran the train script without --cuda
flag and got the following error. I make a colab notebook that runs well on GPU instance but I am trying to accelerate with a CPU instance on GCE.
Loading checkpoint model models/id.pth
Shuffling batches for the following epochs
Selected optimization level O0: Pure FP32 training.
Defaults for this optimization level are:
enabled : True
opt_level : O0
cast_model_type : torch.float32
patch_torch_functions : False
keep_batchnorm_fp32 : None
master_weights : False
loss_scale : 1.0
Processing user overrides (additional kwargs that are not None)...
After processing overrides, optimization options are:
enabled : True
opt_level : O0
cast_model_type : torch.float32
patch_torch_functions : False
keep_batchnorm_fp32 : None
master_weights : False
loss_scale : 1.0
Traceback (most recent call last):
File "train.py", line 159, in <module>
model, optimizer = amp.initialize(model, optimizer, opt_level='O0')
File "/home/minhhoangdang/miniconda3/envs/a2s/lib/python3.6/site-packages/apex/amp/frontend.py", line 358, in initialize
return _initialize(models, optimizers, _amp_state.opt_properties, num_losses, cast_model_outputs)
File "/home/minhhoangdang/miniconda3/envs/a2s/lib/python3.6/site-packages/apex/amp/_initialize.py", line 171, in _initialize
check_params_fp32(models)
File "/home/minhhoangdang/miniconda3/envs/a2s/lib/python3.6/site-packages/apex/amp/_initialize.py", line 93, in check_params_fp32
name, param.type()))
File "/home/minhhoangdang/miniconda3/envs/a2s/lib/python3.6/site-packages/apex/amp/_amp_state.py", line 32, in warn_or_err
raise RuntimeError(msg)
RuntimeError: Found param conv.seq_module.0.weight with type torch.FloatTensor, expected torch.cuda.FloatTensor.
When using amp.initialize, you need to provide a model with parameters
located on a CUDA device before passing it no matter what optimization level
you chose. Use model.to('cuda') to use the default device.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.