Zhouf23 commited on
Commit
ad39254
1 Parent(s): b12bf24

Upload 8 files

Browse files
graphs/multivariate/g2m_edge_index.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec945de92f55e3ab8caa0d01a6b66c5b9b23b924bb9db72725f66035d2e1d950
3
+ size 144896
graphs/multivariate/g2m_features.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c8b700a9224864b93fca7be9b20df5054dadbecb4ec87455c77cc3406c73853
3
+ size 108858
graphs/multivariate/m2g_edge_index.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9acf7f298dc7ffc62cb9fca34050220037795ee549c99b981d99e4fb2c648fdc
3
+ size 1975872
graphs/multivariate/m2g_features.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39a8efc2b1f1d949cd191e45950728732369c78b0decd50d9fceb61f66406e13
3
+ size 1482042
graphs/multivariate/m2m_edge_index.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b560ad1783ce30b6c59d70f365a5dce1d48985f5b8b53c73e786d02419f2eba
3
+ size 922624
graphs/multivariate/m2m_features.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:722ff9e1d707cf3d89071b5b237d29e0bdd5ce5d261cdfab289c11ffdd824785
3
+ size 692154
graphs/multivariate/mesh_features.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df9618c4aa39c3efb0f90dd8de98886970e324fb6df1738328ca626783bea6a4
3
+ size 53245
graphs/multivariate/view_features.ipynb ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "import torch"
10
+ ]
11
+ },
12
+ {
13
+ "cell_type": "code",
14
+ "execution_count": 7,
15
+ "metadata": {},
16
+ "outputs": [
17
+ {
18
+ "name": "stdout",
19
+ "output_type": "stream",
20
+ "text": [
21
+ "g2m_edge_index: torch.Size([2, 9009])\n",
22
+ "g2m_features: torch.Size([9009, 3])\n",
23
+ "m2g_edge_index: torch.Size([123444])\n",
24
+ "m2g_features: torch.Size([123444, 3])\n",
25
+ "m2m_edge_index: torch.Size([2, 57616])\n",
26
+ "m2m_features: torch.Size([57616, 3])\n",
27
+ "mesh_features: torch.Size([6561, 2])\n"
28
+ ]
29
+ }
30
+ ],
31
+ "source": [
32
+ "# read torch pt file\n",
33
+ "g2m_edge_index = torch.load('/home/X-neural-lam/graphs/multivariate/g2m_edge_index.pt')\n",
34
+ "g2m_features = torch.load('/home/X-neural-lam/graphs/multivariate/g2m_features.pt')\n",
35
+ "m2g_edge_index = torch.load('/home/X-neural-lam/graphs/multivariate/m2g_edge_index.pt')\n",
36
+ "m2g_features = torch.load('/home/X-neural-lam/graphs/multivariate/m2g_features.pt') # (3*81*381,3)\n",
37
+ "m2m_edge_index = torch.load('/home/X-neural-lam/graphs/multivariate/m2m_edge_index.pt')\n",
38
+ "m2m_features = torch.load('/home/X-neural-lam/graphs/multivariate/m2m_features.pt')\n",
39
+ "mesh_features = torch.load('/home/X-neural-lam/graphs/multivariate/mesh_features.pt')\n",
40
+ "\n",
41
+ "# print shape\n",
42
+ "print(f'g2m_edge_index: {g2m_edge_index.shape}')\n",
43
+ "print(f'g2m_features: {g2m_features.shape}')\n",
44
+ "print(f'm2g_edge_index: {m2g_edge_index[0].shape}')\n",
45
+ "print(f'm2g_features: {m2g_features.shape}')\n",
46
+ "print(f'm2m_edge_index: {m2m_edge_index[0].shape}')\n",
47
+ "print(f'm2m_features: {m2m_features[0].shape}')\n",
48
+ "print(f'mesh_features: {mesh_features[0].shape}')\n"
49
+ ]
50
+ },
51
+ {
52
+ "cell_type": "markdown",
53
+ "metadata": {},
54
+ "source": [
55
+ "## test mlp"
56
+ ]
57
+ },
58
+ {
59
+ "cell_type": "code",
60
+ "execution_count": 9,
61
+ "metadata": {},
62
+ "outputs": [],
63
+ "source": [
64
+ "input = torch.randn(4,3, 10, requires_grad=True)\n",
65
+ "net = torch.nn.Linear(10, 5)\n",
66
+ "output = net(input)"
67
+ ]
68
+ }
69
+ ],
70
+ "metadata": {
71
+ "kernelspec": {
72
+ "display_name": ".venv",
73
+ "language": "python",
74
+ "name": "python3"
75
+ },
76
+ "language_info": {
77
+ "codemirror_mode": {
78
+ "name": "ipython",
79
+ "version": 3
80
+ },
81
+ "file_extension": ".py",
82
+ "mimetype": "text/x-python",
83
+ "name": "python",
84
+ "nbconvert_exporter": "python",
85
+ "pygments_lexer": "ipython3",
86
+ "version": "3.9.18"
87
+ }
88
+ },
89
+ "nbformat": 4,
90
+ "nbformat_minor": 2
91
+ }