Comments (5)
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.
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.
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.
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.
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)
- Training Bonito on Heavily Modified DNA samples HOT 3
- Model versions HOT 1
- how to cite bonito in my paper? HOT 2
- Optimise training batch_size HOT 2
- Running the example from the README.md doesn't work
- Update for remora 3.0.0 trained model?
- how bonito normalize raw signals when save-ctc HOT 1
- how to calibrate CTC-CRF model base qualities? HOT 1
- Short basecalled R9.4.1 reads using both trained and default models in bonito, but not in guppy
- Bonito Train missing dataset.py HOT 5
- RNA002 model
- RNA004 Does not output any CTC data HOT 3
- bonito basecaller max_reads HOT 1
- Bonito export for dorado error HOT 6
- Feature request: export the list of reads used to train a model
- bonito WASM
- Training data for R10.4, 4 and 5kHz? HOT 3
- Chunks.npy and Dataset.py not being generated HOT 2
- how to best fine tune a model with different references HOT 12
- Applying INT8 quantization, just like in Dorado HOT 2
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 bonito.