Giter Club home page Giter Club logo

rhepp-transformer's People

Contributors

tangjjbetsy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rhepp-transformer's Issues

No module named 'bert_s2p_ioi_2'

Hi, I'm very interested in your work. But I had problem running the inference.
After installing torch 1.12 and other requirements, when I run:
python .\inference.py --ckpt_path .\models\epoch=191-step=196992.ckpt --input_file C:/Users/Fred/Desktop/็’ฐ-cycle-2showtmp.mid --ouput_file C:/Users/Fred/Desktop/cycle_processed.midi

I got

C:\software\miniconda3\envs\torch112\lib\site-packages\torchaudio\backend\utils.py:62: UserWarning: No audio backend is available.
  warnings.warn("No audio backend is available.")
C:\software\miniconda3\envs\torch112\lib\site-packages\pytorch_lightning\utilities\parsing.py:197: UserWarning: Attribute 'model' is an instance of `nn.Module` and is already saved during checkpointing. It is recommended to ignore them using `self.save_hyperparameters(ignore=['model'])`.
  rank_zero_warn(
Traceback (most recent call last):
  File ".\inference.py", line 123, in <module>
    checkpoint = torch.load(args.ckpt_path)
  File "C:\software\miniconda3\envs\torch112\lib\site-packages\torch\serialization.py", line 712, in load
    return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
  File "C:\software\miniconda3\envs\torch112\lib\site-packages\torch\serialization.py", line 1049, in _load
    result = unpickler.load()
  File "C:\software\miniconda3\envs\torch112\lib\site-packages\torch\serialization.py", line 1042, in find_class
    return super().find_class(mod_name, name)
ModuleNotFoundError: No module named 'bert_s2p_ioi_2'

Where is bert_s2p_ioi_2 ?

Besides, I found there's no hs in the inference parser. It seems there's something similar in the training code, so I add a --hs with a value of 128, is that right?
Looking forward to your reply!

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.