Skip to content

Commit f8cad83

Browse files
committed
add Readme
1 parent 55162ec commit f8cad83

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1-
# MLP-Communicator
1+
# PS-Mixer
22

3-
We begin our work on the basis of [MISA](https://github.com/declare-lab/MISA) initially, so the whole code architecture is similar to it, including the data process, data loader and evaluation metrics. Thanks to their open source spirit for saving us a lot of time.
4-
5-
```
6-
@article{hazarika2020misa,
7-
title={MISA: Modality-Invariant and-Specific Representations for Multimodal Sentiment Analysis},
8-
author={Hazarika, Devamanyu and Zimmermann, Roger and Poria, Soujanya},
9-
journal={arXiv preprint arXiv:2005.03545},
10-
year={2020}
11-
}
12-
```
3+
![image-20220613001706944](https://jhfaoisehoiew.oss-cn-beijing.aliyuncs.com/img/image-20220613001706944.png)
134

145
## Requirements
156

@@ -36,6 +27,19 @@ pip install requirements.txt
3627

3728
The repository is updating...
3829

39-
### Contact
30+
## Acknowledgements
31+
32+
We begin our work on the basis of [MISA](https://github.com/declare-lab/MISA) initially, so the whole code architecture is similar to it, including the data process, data loader and evaluation metrics. Thanks to their open source spirit for saving us a lot of time.
33+
34+
```
35+
@article{hazarika2020misa,
36+
title={MISA: Modality-Invariant and-Specific Representations for Multimodal Sentiment Analysis},
37+
author={Hazarika, Devamanyu and Zimmermann, Roger and Poria, Soujanya},
38+
journal={arXiv preprint arXiv:2005.03545},
39+
year={2020}
40+
}
41+
```
42+
43+
## Contact
4044

4145
For any questions, please email at [zpl010720@gmail.com](zpl010720@gmail.com)

config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
word_emb_path = ''
1010
assert(word_emb_path is not None)
1111

12-
project_dir = Path(__file__).resolve().parent
12+
project_dir = Path(__file__).resolve().parent.parent
1313
sdk_dir = project_dir.joinpath('CMU-MultimodalSDK')
1414
data_dir = project_dir.joinpath('datasets')
1515
data_dict = {'mosi': data_dir.joinpath('MOSI'), 'mosei': data_dir.joinpath(
@@ -100,7 +100,7 @@ def get_config(parse=True, **optional_kwargs):
100100
parser.add_argument('--test_duration', type=int, default=1)
101101

102102
# Data
103-
parser.add_argument('--data', type=str, default='mosi') # mosi or mosei
103+
parser.add_argument('--data', type=str, default='mosei') # mosi or mosei
104104

105105
# Parse arguments
106106
if parse:
@@ -116,7 +116,7 @@ def get_config(parse=True, **optional_kwargs):
116116
elif kwargs.data == "mosei":
117117
kwargs.num_classes = 1
118118
kwargs.batch_size = 64
119-
kwargs.depth = 2
119+
kwargs.depth = 1
120120
else:
121121
print("No dataset mentioned")
122122
exit()

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
if __name__ == '__main__':
1212
# Setting random seed
1313
random_name = str(random())
14-
random_seed = 5546
14+
random_seed = 55654
1515
torch.manual_seed(random_seed)
1616
torch.cuda.manual_seed_all(random_seed)
1717
torch.backends.cudnn.deterministic = True

0 commit comments

Comments
 (0)