Giter VIP home page Giter VIP logo

Comments (4)

BILLXZY1215 avatar BILLXZY1215 commented on May 19, 2024 1

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.

plusoneee avatar plusoneee commented on May 19, 2024

@BILLXZY1215 Many thanks to you ! :)

from muzic.

benfenison avatar benfenison commented on May 19, 2024

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.

jzq2000 avatar jzq2000 commented on May 19, 2024

@benfenison you can refer to this link

from muzic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.