Comments (4)
Hi, I guess the structure should be like this:
checkpoints
├── lyric2rhythm
│ └── checkpoint_best.pt
├── template2melody
│ └── checkpoint_best.pt
data-bin
├── lyric2rhythm
│ └── dict.beat.txt
│ ...
├── template2melody
│ └── dict.beat.txt
│ ...
The folders in data-bin
are copied from training/xxx/data-bin/yyy
.
from muzic.
@BILLXZY1215 Many thanks to you ! :)
from muzic.
I have the following format below but keep getting an error:
checkpoints
- lyric2rhythm
---- checkpoint_best.pt (Also are these the lyric2rhythem_en_best.pt files that are provided? Do we torch.load them 1st?
-template2melody
---- checkpoint_best.pt
data-bin
-lyric2rhythm
---- dict.beat.txt
---- dict.lyric.txt
-template2melody
---- dict.trend.txt
---- dict.note.txt
Error:
2022-04-14 01:37:31 | INFO | fairseq.file_utils | loading archive file checkpoints/lyric2rhythm_en_best
2022-04-14 01:37:31 | INFO | fairseq.file_utils | loading archive file data-bin/lyric2rhythm_en_best
Traceback (most recent call last):
File "infer_en.py", line 154, in
data_name_or_path=f'data-bin/{lyric2beat_prefix}',
File "/usr/local/lib/python3.7/dist-packages/fairseq/models/fairseq_model.py", line 265, in from_pretrained
**kwargs,
File "/usr/local/lib/python3.7/dist-packages/fairseq/hub_utils.py", line 72, in from_pretrained
arg_overrides=kwargs,
File "/usr/local/lib/python3.7/dist-packages/fairseq/checkpoint_utils.py", line 279, in load_model_ensemble_and_task
state = load_checkpoint_to_cpu(filename, arg_overrides)
File "/usr/local/lib/python3.7/dist-packages/fairseq/checkpoint_utils.py", line 231, in load_checkpoint_to_cpu
setattr(args, arg_name, arg_val)
AttributeError: 'NoneType' object has no attribute 'data'
Should I only but the dict.beat.txt file in both? The txt file shouldn't have an attribute called 'data' right?
from muzic.
@benfenison you can refer to this link
from muzic.
Related Issues (20)
- [getmusic] promot cannot import name 'RoFormerPreTrainedModel' HOT 6
- [getmusic] chork error during track_generation.py HOT 10
- [getmusic] Is it a way to check MIDI program ID HOT 1
- [getmusic] Is it a way to check MIDI program ID
- [Museformer] Errors about Ninja when inference HOT 3
- Broken links HOT 1
- [SongMASS]请问如何解决未配对的歌词和旋律数据 HOT 1
- [MusicBERT] Pretrained checkpoint models' access is not permitted HOT 4
- [GETMusic] Advanced generation: stuck and position HOT 5
- [musecoco]How can I get access to checkpoint file? HOT 2
- [musecoco] GPU memory for inference HOT 3
- [SongMASS]AttributeError: 'Namespace' object has no attribute 'no_scale_embedding'
- [musecoco] I'm still unable to download the checkpoint file. HOT 4
- [MusicBERT] gen_genre.py EOFError
- [EmoGen] Torch and CUDA version
- [MuseCoCo] attribute2music generate error HOT 4
- [MuseCoCo] models.ARCH_MODEL_REGISTRY[state["args"].arch] HOT 1
- [MusicBERT] Can't download pretrained checkpoints HOT 2
- installation failed with fastBPE , secrets
- [songmass, telemelody] can't download the checkpoints HOT 3
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 muzic.