Image Classification
LiteRT
LiteRT
ONNX
English
vision
botany
western-australia
dinov3
mixture-of-experts
adaround
fp8
int8
android
biodiversity
flora
Instructions to use thenukegun10x/PLantDetect-WA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use thenukegun10x/PLantDetect-WA with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update src\models\mor_vit.py
Browse files- src/models/mor_vit.py +1 -1
src/models/mor_vit.py
CHANGED
|
@@ -358,7 +358,7 @@ class MoRViT(nn.Module):
|
|
| 358 |
self, x: torch.Tensor, step: int = 0, pool: str = "patchmean"
|
| 359 |
) -> torch.Tensor:
|
| 360 |
"""Per-slice features (no head): [S, D] from [S, 3, H, W] slices."""
|
| 361 |
-
tokens = self.stem.forward_features(x)
|
| 362 |
return self.features_from_tokens(tokens, step, pool)
|
| 363 |
|
| 364 |
def features_from_tokens(
|
|
|
|
| 358 |
self, x: torch.Tensor, step: int = 0, pool: str = "patchmean"
|
| 359 |
) -> torch.Tensor:
|
| 360 |
"""Per-slice features (no head): [S, D] from [S, 3, H, W] slices."""
|
| 361 |
+
tokens = self.stem.forward_features(x) # [S, T, D]
|
| 362 |
return self.features_from_tokens(tokens, step, pool)
|
| 363 |
|
| 364 |
def features_from_tokens(
|