Instructions to use InstaDeepAI/segment_nt_multi_species with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InstaDeepAI/segment_nt_multi_species with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="InstaDeepAI/segment_nt_multi_species", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("InstaDeepAI/segment_nt_multi_species", trust_remote_code=True) model = AutoModel.from_pretrained("InstaDeepAI/segment_nt_multi_species", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -92,7 +92,7 @@ probabilities = torch.nn.functional.softmax(logits, dim=-1)
|
|
| 92 |
print(f"Probabilities shape: {probabilities.shape}")
|
| 93 |
|
| 94 |
# Get probabilities associated with intron
|
| 95 |
-
idx_intron = features.index("intron")
|
| 96 |
probabilities_intron = probabilities[:,:,idx_intron]
|
| 97 |
print(f"Intron probabilities shape: {probabilities_intron.shape}")
|
| 98 |
```
|
|
|
|
| 92 |
print(f"Probabilities shape: {probabilities.shape}")
|
| 93 |
|
| 94 |
# Get probabilities associated with intron
|
| 95 |
+
idx_intron = model.config.features.index("intron")
|
| 96 |
probabilities_intron = probabilities[:,:,idx_intron]
|
| 97 |
print(f"Intron probabilities shape: {probabilities_intron.shape}")
|
| 98 |
```
|