Wuhuwill commited on
Commit
9f4d533
·
verified ·
1 Parent(s): 62dee50

Upload ProDiff/Experiments/trajectory_exp_temporal_split_TKY_temporal_len3_ddpm_20250724-101259/code_snapshot/config.py with huggingface_hub

Browse files
ProDiff/Experiments/trajectory_exp_temporal_split_TKY_temporal_len3_ddpm_20250724-101259/code_snapshot/config.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Configuration settings for the trajectory interpolation project.
3
+
4
+ This file defines a function `load_config()` which returns a dictionary
5
+ containing various parameters grouped by their purpose (e.g., data, model,
6
+ diffusion, training, sampling).
7
+ """
8
+ from types import SimpleNamespace
9
+
10
+ def load_config():
11
+ args = {
12
+ 'data': {
13
+ 'dataset': 'TKY_temporal',
14
+ 'traj_path1': './data/',
15
+ 'traj_length': 3,
16
+ 'channels': 2,
17
+ 'uniform_dequantization': False,
18
+ 'gaussian_dequantization': False,
19
+ 'num_workers': True,
20
+ },
21
+ 'model': {
22
+ 'type': "simple",
23
+ 'attr_dim': 8,
24
+ 'guidance_scale': 2,
25
+ 'in_channels': 3,
26
+ 'out_ch': 3,
27
+ 'ch': 128,
28
+ 'ch_mult': [1, 2, 2, 2],
29
+ 'num_res_blocks': 2,
30
+ 'attn_resolutions': [16],
31
+ 'dropout': 0.1,
32
+ 'var_type': 'fixedlarge',
33
+ 'resamp_with_conv': True,
34
+ },
35
+ 'trans': {
36
+ 'input_dim': 3,
37
+ 'embed_dim': 512,
38
+ 'num_layers': 4,
39
+ 'num_heads': 8,
40
+ 'forward_dim': 256,
41
+ 'dropout': 0.1,
42
+ 'N_CLUSTER': 20,
43
+ },
44
+ 'diffusion': {
45
+ 'beta_schedule': 'linear',
46
+ 'beta_start': 0.0001,
47
+ 'beta_end': 0.05,
48
+ 'num_diffusion_timesteps': 500,
49
+ },
50
+ 'training': {
51
+ 'batch_size': 256,
52
+ 'n_epochs': 100,
53
+ 'n_iters': 5000000,
54
+ 'snapshot_freq': 5000,
55
+ 'validation_freq': 10,
56
+ 'dis_gpu': False,
57
+ },
58
+ 'sampling': {
59
+ 'batch_size': 64,
60
+ 'last_only': True,
61
+ }
62
+ }
63
+
64
+ return args