pablorodriper commited on
Commit
9d660d0
1 Parent(s): 9b2dc59

Upload constants.py

Browse files
Files changed (1) hide show
  1. constants.py +27 -0
constants.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import tensorflow as tf
2
+
3
+ # DATA
4
+ DATASET_NAME = "organmnist3d"
5
+ BATCH_SIZE = 32
6
+ AUTO = tf.data.AUTOTUNE
7
+ INPUT_SHAPE = (28, 28, 28, 1)
8
+ NUM_CLASSES = 11
9
+
10
+ # OPTIMIZER
11
+ LEARNING_RATE = 1e-4
12
+ WEIGHT_DECAY = 1e-5
13
+
14
+ # TRAINING
15
+ EPOCHS = 80
16
+
17
+ # TUBELET EMBEDDING
18
+ PATCH_SIZE = (8, 8, 8)
19
+ NUM_PATCHES = (INPUT_SHAPE[0] // PATCH_SIZE[0]) ** 2
20
+
21
+ # ViViT ARCHITECTURE
22
+ LAYER_NORM_EPS = 1e-6
23
+ PROJECTION_DIM = 128
24
+ NUM_HEADS = 8
25
+ NUM_LAYERS = 8
26
+
27
+ labels = ['liver', 'kidney-right', 'kidney-left', 'femur-right', 'femur-left', 'bladder', 'heart', 'lung-right', 'lung-left', 'spleen', 'pancreas']