Spaces:
Running
Running
Commit
·
ed5ae8a
1
Parent(s):
2771ada
x = x.to(torch.float16) # bfloat16
Browse files
third_party/VideoLLaMA2/videollama2/model/projector.py
CHANGED
|
@@ -217,6 +217,7 @@ class STCConnector(nn.Module):
|
|
| 217 |
|
| 218 |
x = einops.rearrange(x, "b d t h w -> (b t) d h w")
|
| 219 |
# 1. the first stage of the adapter
|
|
|
|
| 220 |
x = self.s1(x)
|
| 221 |
x = einops.rearrange(x, "(b t) d h w -> b d t h w", t=t)
|
| 222 |
# 2. downsampler
|
|
|
|
| 217 |
|
| 218 |
x = einops.rearrange(x, "b d t h w -> (b t) d h w")
|
| 219 |
# 1. the first stage of the adapter
|
| 220 |
+
x = x.to(torch.float16) # bfloat16
|
| 221 |
x = self.s1(x)
|
| 222 |
x = einops.rearrange(x, "(b t) d h w -> b d t h w", t=t)
|
| 223 |
# 2. downsampler
|