Git Product home page Git Product logo

Comments (5)

iiSeymour avatar iiSeymour commented on September 25, 2024

Hey @studyfranco

The OpenVino branch is still a work in process and I would expect a few issues until it's merged. The issue you are seeing is related to preparing the training data only so if you just want to try basecalling with the OpenVino backend you can ignore this error for now.

from bonito.

studyfranco avatar studyfranco commented on September 25, 2024

Hey @iiSeymour

Thank you for the rapid reply. I do what you suggest, and I try to create my basecall.
bonito basecaller dna_r9.4.1 --save-ctc --use_openvino --reference possibleSeq.mmi /mnt/Data/Team_projects/fast5_pass > basecalls.sam

But I obtain this error:

> loading model
Traceback (most recent call last):
  File "/home/sysfate/.conda/envs/bonito/bin/bonito", line 33, in <module>
    sys.exit(load_entry_point('ont-bonito', 'console_scripts', 'bonito')())
  File "/home/sysfate/.conda/envs/bonito/bonito/bonito/__init__.py", line 39, in main
    args.func(args)
  File "/home/sysfate/.conda/envs/bonito/bonito/bonito/basecaller.py", line 30, in main
    use_openvino=args.use_openvino,
  File "/home/sysfate/.conda/envs/bonito/bonito/bonito/util.py", line 332, in load_model
    model = Model(toml.load(config))
  File "/home/sysfate/.conda/envs/bonito/bonito/bonito/model.py", line 81, in __init__
    self.stride = config['block'][0]['stride'][0]
KeyError: 'block'

I am a little bit lost now, what do you suggest ?

from bonito.

iiSeymour avatar iiSeymour commented on September 25, 2024

Ah that's my fault, I've pushed a new pre-trained model in preparation for v0.3.0 next week that has a different config.

Can you delete the dna_r9.4.1 directory in bonito/models and swap the model URL here to "nas0uhf46fd1lh2jndhx2a54a9vvhxp4.zip" then run bonito download --models again.

from bonito.

studyfranco avatar studyfranco commented on September 25, 2024

I followed your instructions. With my next try I obtain this error:

> loading model
Traceback (most recent call last):
  File "/home/sysfate/.conda/envs/bonito/bin/bonito", line 33, in <module>
    sys.exit(load_entry_point('ont-bonito', 'console_scripts', 'bonito')())
  File "/home/sysfate/.conda/envs/bonito/bonito/bonito/__init__.py", line 39, in main
    args.func(args)
  File "/home/sysfate/.conda/envs/bonito/bonito/bonito/basecaller.py", line 30, in main
    use_openvino=args.use_openvino,
  File "/home/sysfate/.conda/envs/bonito/bonito/bonito/util.py", line 346, in load_model
    model = OpenVINOModel(model, half, dirname)
  File "/home/sysfate/.conda/envs/bonito/bonito/bonito/openvino/model.py", line 19, in __init__
    model_name = model.config['model'] + ('_fp16' if half else '')
TypeError: unsupported operand type(s) for +: 'dict' and 'str'

inside model.config['model'] you have {'package': 'bonito.ctc'}
What are your suggestion ?
Thank you lot of for your help !

from bonito.

dkurt avatar dkurt commented on September 25, 2024

Hi!

openvino-python 2021.1 requires numpy==1.16.3, but you'll have numpy 1.19.2 which is incompatible.

Please try an updated version of the branch. I modified requirements.txt so it installs numpy==1.16.3.

from bonito.

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.