pabloruizponce
commited on
Upload model
Browse files- model.py +2 -0
- pytorch_model.bin +1 -1
model.py
CHANGED
@@ -8,6 +8,7 @@ from scipy.ndimage import gaussian_filter1d
|
|
8 |
from transformers import PreTrainedModel
|
9 |
from in2in.utils.configs import get_config
|
10 |
from in2in.models.in2in import in2IN
|
|
|
11 |
|
12 |
from .config import in2INConfig
|
13 |
|
@@ -19,6 +20,7 @@ class in2INModel(PreTrainedModel):
|
|
19 |
super().__init__(config)
|
20 |
self.mode = config.MODE
|
21 |
self.model = in2IN(config, mode=config.MODE)
|
|
|
22 |
|
23 |
def forward(self, prompt_interaction, prompt_individual1, prompt_individual2):
|
24 |
self.model.eval()
|
|
|
8 |
from transformers import PreTrainedModel
|
9 |
from in2in.utils.configs import get_config
|
10 |
from in2in.models.in2in import in2IN
|
11 |
+
from in2in.utils.preprocess import MotionNormalizer
|
12 |
|
13 |
from .config import in2INConfig
|
14 |
|
|
|
20 |
super().__init__(config)
|
21 |
self.mode = config.MODE
|
22 |
self.model = in2IN(config, mode=config.MODE)
|
23 |
+
self.normalizer = MotionNormalizer()
|
24 |
|
25 |
def forward(self, prompt_interaction, prompt_individual1, prompt_individual2):
|
26 |
self.model.eval()
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1242367342
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eb7e10f813dca281a85b90923d3bade36195d8cd450fcb2604c63a3d3e332af9
|
3 |
size 1242367342
|