thenukegun10x commited on
Commit
7198674
·
verified ·
1 Parent(s): 198a76d

Update src\models\mor_vit.py

Browse files
Files changed (1) hide show
  1. 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).bfloat16() # [S, T, D] (bit-equal to feat cache)
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(