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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
***************
|
| 2 |
+
** Arguments **
|
| 3 |
+
***************
|
| 4 |
+
backbone:
|
| 5 |
+
config_file: configs/trainers/BiomedCoOp_BiomedCLIP/base_to_novel/retina.yaml
|
| 6 |
+
dataset_config_file: configs/datasets/retina.yaml
|
| 7 |
+
eval_only: True
|
| 8 |
+
head:
|
| 9 |
+
load_epoch: 50
|
| 10 |
+
model_dir: output_reproduce/base2new/train_base/retina/shots_16/seed1
|
| 11 |
+
no_train: False
|
| 12 |
+
opts: ['DATASET.NUM_SHOTS', '16', 'DATASET.SUBSAMPLE_CLASSES', 'new']
|
| 13 |
+
output_dir: output_reproduce/base2new/test_new/retina/shots_16/seed1
|
| 14 |
+
resume:
|
| 15 |
+
root: DATA
|
| 16 |
+
seed: 1
|
| 17 |
+
source_domains: None
|
| 18 |
+
target_domains: None
|
| 19 |
+
trainer: BiomedCoOp_BiomedCLIP
|
| 20 |
+
transforms: None
|
| 21 |
+
************
|
| 22 |
+
** Config **
|
| 23 |
+
************
|
| 24 |
+
DATALOADER:
|
| 25 |
+
K_TRANSFORMS: 1
|
| 26 |
+
NUM_WORKERS: 8
|
| 27 |
+
RETURN_IMG0: False
|
| 28 |
+
TEST:
|
| 29 |
+
BATCH_SIZE: 100
|
| 30 |
+
SAMPLER: SequentialSampler
|
| 31 |
+
TRAIN_U:
|
| 32 |
+
BATCH_SIZE: 32
|
| 33 |
+
N_DOMAIN: 0
|
| 34 |
+
N_INS: 16
|
| 35 |
+
SAME_AS_X: True
|
| 36 |
+
SAMPLER: RandomSampler
|
| 37 |
+
TRAIN_X:
|
| 38 |
+
BATCH_SIZE: 4
|
| 39 |
+
N_DOMAIN: 0
|
| 40 |
+
N_INS: 16
|
| 41 |
+
SAMPLER: RandomSampler
|
| 42 |
+
DATASET:
|
| 43 |
+
ALL_AS_UNLABELED: False
|
| 44 |
+
CIFAR_C_LEVEL: 1
|
| 45 |
+
CIFAR_C_TYPE:
|
| 46 |
+
NAME: RETINA
|
| 47 |
+
NUM_LABELED: -1
|
| 48 |
+
NUM_SHOTS: 16
|
| 49 |
+
ROOT: DATA
|
| 50 |
+
SOURCE_DOMAINS: ()
|
| 51 |
+
STL10_FOLD: -1
|
| 52 |
+
SUBSAMPLE_CLASSES: new
|
| 53 |
+
TARGET_DOMAINS: ()
|
| 54 |
+
VAL_PERCENT: 0.1
|
| 55 |
+
INPUT:
|
| 56 |
+
COLORJITTER_B: 0.4
|
| 57 |
+
COLORJITTER_C: 0.4
|
| 58 |
+
COLORJITTER_H: 0.1
|
| 59 |
+
COLORJITTER_S: 0.4
|
| 60 |
+
CROP_PADDING: 4
|
| 61 |
+
CUTOUT_LEN: 16
|
| 62 |
+
CUTOUT_N: 1
|
| 63 |
+
GB_K: 21
|
| 64 |
+
GB_P: 0.5
|
| 65 |
+
GN_MEAN: 0.0
|
| 66 |
+
GN_STD: 0.15
|
| 67 |
+
INTERPOLATION: bicubic
|
| 68 |
+
NO_TRANSFORM: False
|
| 69 |
+
PIXEL_MEAN: [0.48145466, 0.4578275, 0.40821073]
|
| 70 |
+
PIXEL_STD: [0.26862954, 0.26130258, 0.27577711]
|
| 71 |
+
RANDAUGMENT_M: 10
|
| 72 |
+
RANDAUGMENT_N: 2
|
| 73 |
+
RGS_P: 0.2
|
| 74 |
+
SIZE: (224, 224)
|
| 75 |
+
TRANSFORMS: ('random_resized_crop', 'normalize')
|
| 76 |
+
MODEL:
|
| 77 |
+
BACKBONE:
|
| 78 |
+
NAME: ViT-B/16
|
| 79 |
+
PRETRAINED: True
|
| 80 |
+
HEAD:
|
| 81 |
+
ACTIVATION: relu
|
| 82 |
+
BN: True
|
| 83 |
+
DROPOUT: 0.0
|
| 84 |
+
HIDDEN_LAYERS: ()
|
| 85 |
+
NAME:
|
| 86 |
+
INIT_WEIGHTS:
|
| 87 |
+
OPTIM:
|
| 88 |
+
ADAM_BETA1: 0.9
|
| 89 |
+
ADAM_BETA2: 0.999
|
| 90 |
+
BASE_LR_MULT: 0.1
|
| 91 |
+
GAMMA: 0.1
|
| 92 |
+
LR: 0.0025
|
| 93 |
+
LR_SCHEDULER: cosine
|
| 94 |
+
MAX_EPOCH: 50
|
| 95 |
+
MOMENTUM: 0.9
|
| 96 |
+
NAME: sgd
|
| 97 |
+
NEW_LAYERS: ()
|
| 98 |
+
RMSPROP_ALPHA: 0.99
|
| 99 |
+
SGD_DAMPNING: 0
|
| 100 |
+
SGD_NESTEROV: False
|
| 101 |
+
STAGED_LR: False
|
| 102 |
+
STEPSIZE: (-1,)
|
| 103 |
+
WARMUP_CONS_LR: 1e-05
|
| 104 |
+
WARMUP_EPOCH: 1
|
| 105 |
+
WARMUP_MIN_LR: 1e-05
|
| 106 |
+
WARMUP_RECOUNT: True
|
| 107 |
+
WARMUP_TYPE: constant
|
| 108 |
+
WEIGHT_DECAY: 0.0005
|
| 109 |
+
OUTPUT_DIR: output_reproduce/base2new/test_new/retina/shots_16/seed1
|
| 110 |
+
RESUME:
|
| 111 |
+
SEED: 1
|
| 112 |
+
TEST:
|
| 113 |
+
COMPUTE_CMAT: False
|
| 114 |
+
EVALUATOR: Classification
|
| 115 |
+
FINAL_MODEL: last_step
|
| 116 |
+
NO_TEST: False
|
| 117 |
+
PER_CLASS_RESULT: False
|
| 118 |
+
SPLIT: test
|
| 119 |
+
TRAIN:
|
| 120 |
+
CHECKPOINT_FREQ: 0
|
| 121 |
+
COUNT_ITER: train_x
|
| 122 |
+
PRINT_FREQ: 20
|
| 123 |
+
TRAINER:
|
| 124 |
+
BIOMEDCOOP:
|
| 125 |
+
CLASS_TOKEN_POSITION: end
|
| 126 |
+
CSC: False
|
| 127 |
+
CTX_INIT: a photo of a
|
| 128 |
+
KDSP_LAMBDA: 1.0
|
| 129 |
+
N_CTX: 4
|
| 130 |
+
N_PROMPTS: 50
|
| 131 |
+
PREC: fp32
|
| 132 |
+
SCCM_LAMBDA: 5.0
|
| 133 |
+
TAU: 2.0
|
| 134 |
+
CG:
|
| 135 |
+
ALPHA_D: 0.5
|
| 136 |
+
ALPHA_F: 0.5
|
| 137 |
+
EPS_D: 1.0
|
| 138 |
+
EPS_F: 1.0
|
| 139 |
+
COCOOP:
|
| 140 |
+
CLASS_TOKEN_POSITION: end
|
| 141 |
+
CSC: False
|
| 142 |
+
CTX_INIT:
|
| 143 |
+
N_CTX: 4
|
| 144 |
+
PREC: fp32
|
| 145 |
+
COOP:
|
| 146 |
+
CLASS_TOKEN_POSITION: end
|
| 147 |
+
CSC: False
|
| 148 |
+
CTX_INIT:
|
| 149 |
+
N_CTX: 4
|
| 150 |
+
PREC: fp32
|
| 151 |
+
DAEL:
|
| 152 |
+
CONF_THRE: 0.95
|
| 153 |
+
STRONG_TRANSFORMS: ()
|
| 154 |
+
WEIGHT_U: 0.5
|
| 155 |
+
DDAIG:
|
| 156 |
+
ALPHA: 0.5
|
| 157 |
+
CLAMP: False
|
| 158 |
+
CLAMP_MAX: 1.0
|
| 159 |
+
CLAMP_MIN: -1.0
|
| 160 |
+
G_ARCH:
|
| 161 |
+
LMDA: 0.3
|
| 162 |
+
WARMUP: 0
|
| 163 |
+
ENTMIN:
|
| 164 |
+
LMDA: 0.001
|
| 165 |
+
FIXMATCH:
|
| 166 |
+
CONF_THRE: 0.95
|
| 167 |
+
STRONG_TRANSFORMS: ()
|
| 168 |
+
WEIGHT_U: 1.0
|
| 169 |
+
KGCOOP:
|
| 170 |
+
CLASS_TOKEN_POSITION: end
|
| 171 |
+
CSC: False
|
| 172 |
+
CTX_INIT: a photo of a
|
| 173 |
+
N_CTX: 4
|
| 174 |
+
PREC: fp32
|
| 175 |
+
W: 1.0
|
| 176 |
+
M3SDA:
|
| 177 |
+
LMDA: 0.5
|
| 178 |
+
N_STEP_F: 4
|
| 179 |
+
MCD:
|
| 180 |
+
N_STEP_F: 4
|
| 181 |
+
MEANTEA:
|
| 182 |
+
EMA_ALPHA: 0.999
|
| 183 |
+
RAMPUP: 5
|
| 184 |
+
WEIGHT_U: 1.0
|
| 185 |
+
MIXMATCH:
|
| 186 |
+
MIXUP_BETA: 0.75
|
| 187 |
+
RAMPUP: 20000
|
| 188 |
+
TEMP: 2.0
|
| 189 |
+
WEIGHT_U: 100.0
|
| 190 |
+
MME:
|
| 191 |
+
LMDA: 0.1
|
| 192 |
+
NAME: BiomedCoOp_BiomedCLIP
|
| 193 |
+
PROGRAD:
|
| 194 |
+
ALPHA: 0.0
|
| 195 |
+
CLASS_TOKEN_POSITION: end
|
| 196 |
+
CSC: False
|
| 197 |
+
CTX_INIT: a photo of a
|
| 198 |
+
GM: False
|
| 199 |
+
LAMBDA: 1.0
|
| 200 |
+
NAME:
|
| 201 |
+
N_CTX: 4
|
| 202 |
+
PREC: fp32
|
| 203 |
+
T: 1.0
|
| 204 |
+
SE:
|
| 205 |
+
CONF_THRE: 0.95
|
| 206 |
+
EMA_ALPHA: 0.999
|
| 207 |
+
RAMPUP: 300
|
| 208 |
+
USE_CUDA: True
|
| 209 |
+
VERBOSE: True
|
| 210 |
+
VERSION: 1
|
| 211 |
+
Collecting env info ...
|
| 212 |
+
** System info **
|
| 213 |
+
PyTorch version: 2.0.1+cu118
|
| 214 |
+
Is debug build: False
|
| 215 |
+
CUDA used to build PyTorch: 11.8
|
| 216 |
+
ROCM used to build PyTorch: N/A
|
| 217 |
+
|
| 218 |
+
OS: Ubuntu 22.04.5 LTS (x86_64)
|
| 219 |
+
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
|
| 220 |
+
Clang version: Could not collect
|
| 221 |
+
CMake version: version 3.25.0
|
| 222 |
+
Libc version: glibc-2.35
|
| 223 |
+
|
| 224 |
+
Python version: 3.10.15 (main, Oct 3 2024, 07:27:34) [GCC 11.2.0] (64-bit runtime)
|
| 225 |
+
Python platform: Linux-5.15.0-134-generic-x86_64-with-glibc2.35
|
| 226 |
+
Is CUDA available: True
|
| 227 |
+
CUDA runtime version: 12.8.61
|
| 228 |
+
CUDA_MODULE_LOADING set to: LAZY
|
| 229 |
+
GPU models and configuration:
|
| 230 |
+
GPU 0: NVIDIA A100-SXM4-40GB
|
| 231 |
+
GPU 1: NVIDIA A100-SXM4-40GB
|
| 232 |
+
GPU 2: NVIDIA A100-SXM4-40GB
|
| 233 |
+
GPU 3: NVIDIA A100-SXM4-40GB
|
| 234 |
+
|
| 235 |
+
Nvidia driver version: 570.124.06
|
| 236 |
+
cuDNN version: Could not collect
|
| 237 |
+
HIP runtime version: N/A
|
| 238 |
+
MIOpen runtime version: N/A
|
| 239 |
+
Is XNNPACK available: True
|
| 240 |
+
|
| 241 |
+
CPU:
|
| 242 |
+
Architecture: x86_64
|
| 243 |
+
CPU op-mode(s): 32-bit, 64-bit
|
| 244 |
+
Address sizes: 43 bits physical, 48 bits virtual
|
| 245 |
+
Byte Order: Little Endian
|
| 246 |
+
CPU(s): 128
|
| 247 |
+
On-line CPU(s) list: 0-127
|
| 248 |
+
Vendor ID: AuthenticAMD
|
| 249 |
+
Model name: AMD EPYC 7502 32-Core Processor
|
| 250 |
+
CPU family: 23
|
| 251 |
+
Model: 49
|
| 252 |
+
Thread(s) per core: 2
|
| 253 |
+
Core(s) per socket: 32
|
| 254 |
+
Socket(s): 2
|
| 255 |
+
Stepping: 0
|
| 256 |
+
Frequency boost: enabled
|
| 257 |
+
CPU max MHz: 2500.0000
|
| 258 |
+
CPU min MHz: 1500.0000
|
| 259 |
+
BogoMIPS: 4999.71
|
| 260 |
+
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sme sev sev_es
|
| 261 |
+
Virtualization: AMD-V
|
| 262 |
+
L1d cache: 2 MiB (64 instances)
|
| 263 |
+
L1i cache: 2 MiB (64 instances)
|
| 264 |
+
L2 cache: 32 MiB (64 instances)
|
| 265 |
+
L3 cache: 256 MiB (16 instances)
|
| 266 |
+
NUMA node(s): 2
|
| 267 |
+
NUMA node0 CPU(s): 0-31,64-95
|
| 268 |
+
NUMA node1 CPU(s): 32-63,96-127
|
| 269 |
+
Vulnerability Gather data sampling: Not affected
|
| 270 |
+
Vulnerability Itlb multihit: Not affected
|
| 271 |
+
Vulnerability L1tf: Not affected
|
| 272 |
+
Vulnerability Mds: Not affected
|
| 273 |
+
Vulnerability Meltdown: Not affected
|
| 274 |
+
Vulnerability Mmio stale data: Not affected
|
| 275 |
+
Vulnerability Reg file data sampling: Not affected
|
| 276 |
+
Vulnerability Retbleed: Mitigation; untrained return thunk; SMT enabled with STIBP protection
|
| 277 |
+
Vulnerability Spec rstack overflow: Mitigation; safe RET
|
| 278 |
+
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
|
| 279 |
+
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
|
| 280 |
+
Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
|
| 281 |
+
Vulnerability Srbds: Not affected
|
| 282 |
+
Vulnerability Tsx async abort: Not affected
|
| 283 |
+
|
| 284 |
+
Versions of relevant libraries:
|
| 285 |
+
[pip3] numpy==1.26.3
|
| 286 |
+
[pip3] torch==2.0.1+cu118
|
| 287 |
+
[pip3] torchvision==0.15.2+cu118
|
| 288 |
+
[conda] numpy 1.26.3 pypi_0 pypi
|
| 289 |
+
[conda] torch 2.0.1+cu118 pypi_0 pypi
|
| 290 |
+
[conda] torchvision 0.15.2+cu118 pypi_0 pypi
|
| 291 |
+
Pillow (10.2.0)
|
| 292 |
+
|
| 293 |
+
Loading trainer: BiomedCoOp_BiomedCLIP
|
| 294 |
+
Loading dataset: RETINA
|
| 295 |
+
Reading split from /data/t_kol/BiomedCoOp/DATA/RETINA/split_RETINA.json
|
| 296 |
+
Loading preprocessed few-shot data from /data/t_kol/BiomedCoOp/DATA/RETINA/split_fewshot/shot_16-seed_1.pkl
|
| 297 |
+
SUBSAMPLE NEW CLASSES!
|
| 298 |
+
Building transform_train
|
| 299 |
+
+ random resized crop (size=(224, 224))
|
| 300 |
+
+ to torch tensor of range [0, 1]
|
| 301 |
+
+ normalization (mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711])
|
| 302 |
+
Building transform_test
|
| 303 |
+
+ resize the smaller edge to 224
|
| 304 |
+
+ 224x224 center crop
|
| 305 |
+
+ to torch tensor of range [0, 1]
|
| 306 |
+
+ normalization (mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711])
|
| 307 |
+
***** Dataset statistics *****
|
| 308 |
+
Dataset: RETINA
|
| 309 |
+
# classes: 2
|
| 310 |
+
# train_x: 32
|
| 311 |
+
# val: 8
|
| 312 |
+
# test: 635
|
| 313 |
+
Loading BiomedCLIP (backbone: ViT-B/16)
|
| 314 |
+
Building custom CLIP
|
| 315 |
+
Initial text context: "a photo of a"
|
| 316 |
+
Number of context words (tokens) for Language prompting: 4
|
| 317 |
+
Turning off gradients in both the image and the text encoder
|
| 318 |
+
Parameters to be updated: {'prompt_learner.ctx'}
|
| 319 |
+
Parameters count: 1
|
| 320 |
+
Loading evaluator: Classification
|
| 321 |
+
Trainer built successfully.
|
| 322 |
+
Loading weights to prompt_learner from "output_reproduce/base2new/train_base/retina/shots_16/seed1/prompt_learner/model.pth.tar-50" (epoch = 50)
|
| 323 |
+
Do evaluation on test set
|
| 324 |
+
=> result
|
| 325 |
+
* total: 635
|
| 326 |
+
* correct: 495
|
| 327 |
+
* accuracy: 77.95%
|
| 328 |
+
* error: 22.05%
|
| 329 |
+
* macro_f1: 77.76%
|
base2new/test_new/retina/shots_16/BiomedCoOp_BiomedCLIP/nctx4_cscFalse_ctpend/seed2/log.txt
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
***************
|
| 2 |
+
** Arguments **
|
| 3 |
+
***************
|
| 4 |
+
backbone:
|
| 5 |
+
config_file: configs/trainers/BiomedCoOp_BiomedCLIP/base_to_novel/retina.yaml
|
| 6 |
+
dataset_config_file: configs/datasets/retina.yaml
|
| 7 |
+
eval_only: True
|
| 8 |
+
head:
|
| 9 |
+
load_epoch: 50
|
| 10 |
+
model_dir: output_reproduce/base2new/train_base/retina/shots_16/seed2
|
| 11 |
+
no_train: False
|
| 12 |
+
opts: ['DATASET.NUM_SHOTS', '16', 'DATASET.SUBSAMPLE_CLASSES', 'new']
|
| 13 |
+
output_dir: output_reproduce/base2new/test_new/retina/shots_16/seed2
|
| 14 |
+
resume:
|
| 15 |
+
root: DATA
|
| 16 |
+
seed: 2
|
| 17 |
+
source_domains: None
|
| 18 |
+
target_domains: None
|
| 19 |
+
trainer: BiomedCoOp_BiomedCLIP
|
| 20 |
+
transforms: None
|
| 21 |
+
************
|
| 22 |
+
** Config **
|
| 23 |
+
************
|
| 24 |
+
DATALOADER:
|
| 25 |
+
K_TRANSFORMS: 1
|
| 26 |
+
NUM_WORKERS: 8
|
| 27 |
+
RETURN_IMG0: False
|
| 28 |
+
TEST:
|
| 29 |
+
BATCH_SIZE: 100
|
| 30 |
+
SAMPLER: SequentialSampler
|
| 31 |
+
TRAIN_U:
|
| 32 |
+
BATCH_SIZE: 32
|
| 33 |
+
N_DOMAIN: 0
|
| 34 |
+
N_INS: 16
|
| 35 |
+
SAME_AS_X: True
|
| 36 |
+
SAMPLER: RandomSampler
|
| 37 |
+
TRAIN_X:
|
| 38 |
+
BATCH_SIZE: 4
|
| 39 |
+
N_DOMAIN: 0
|
| 40 |
+
N_INS: 16
|
| 41 |
+
SAMPLER: RandomSampler
|
| 42 |
+
DATASET:
|
| 43 |
+
ALL_AS_UNLABELED: False
|
| 44 |
+
CIFAR_C_LEVEL: 1
|
| 45 |
+
CIFAR_C_TYPE:
|
| 46 |
+
NAME: RETINA
|
| 47 |
+
NUM_LABELED: -1
|
| 48 |
+
NUM_SHOTS: 16
|
| 49 |
+
ROOT: DATA
|
| 50 |
+
SOURCE_DOMAINS: ()
|
| 51 |
+
STL10_FOLD: -1
|
| 52 |
+
SUBSAMPLE_CLASSES: new
|
| 53 |
+
TARGET_DOMAINS: ()
|
| 54 |
+
VAL_PERCENT: 0.1
|
| 55 |
+
INPUT:
|
| 56 |
+
COLORJITTER_B: 0.4
|
| 57 |
+
COLORJITTER_C: 0.4
|
| 58 |
+
COLORJITTER_H: 0.1
|
| 59 |
+
COLORJITTER_S: 0.4
|
| 60 |
+
CROP_PADDING: 4
|
| 61 |
+
CUTOUT_LEN: 16
|
| 62 |
+
CUTOUT_N: 1
|
| 63 |
+
GB_K: 21
|
| 64 |
+
GB_P: 0.5
|
| 65 |
+
GN_MEAN: 0.0
|
| 66 |
+
GN_STD: 0.15
|
| 67 |
+
INTERPOLATION: bicubic
|
| 68 |
+
NO_TRANSFORM: False
|
| 69 |
+
PIXEL_MEAN: [0.48145466, 0.4578275, 0.40821073]
|
| 70 |
+
PIXEL_STD: [0.26862954, 0.26130258, 0.27577711]
|
| 71 |
+
RANDAUGMENT_M: 10
|
| 72 |
+
RANDAUGMENT_N: 2
|
| 73 |
+
RGS_P: 0.2
|
| 74 |
+
SIZE: (224, 224)
|
| 75 |
+
TRANSFORMS: ('random_resized_crop', 'normalize')
|
| 76 |
+
MODEL:
|
| 77 |
+
BACKBONE:
|
| 78 |
+
NAME: ViT-B/16
|
| 79 |
+
PRETRAINED: True
|
| 80 |
+
HEAD:
|
| 81 |
+
ACTIVATION: relu
|
| 82 |
+
BN: True
|
| 83 |
+
DROPOUT: 0.0
|
| 84 |
+
HIDDEN_LAYERS: ()
|
| 85 |
+
NAME:
|
| 86 |
+
INIT_WEIGHTS:
|
| 87 |
+
OPTIM:
|
| 88 |
+
ADAM_BETA1: 0.9
|
| 89 |
+
ADAM_BETA2: 0.999
|
| 90 |
+
BASE_LR_MULT: 0.1
|
| 91 |
+
GAMMA: 0.1
|
| 92 |
+
LR: 0.0025
|
| 93 |
+
LR_SCHEDULER: cosine
|
| 94 |
+
MAX_EPOCH: 50
|
| 95 |
+
MOMENTUM: 0.9
|
| 96 |
+
NAME: sgd
|
| 97 |
+
NEW_LAYERS: ()
|
| 98 |
+
RMSPROP_ALPHA: 0.99
|
| 99 |
+
SGD_DAMPNING: 0
|
| 100 |
+
SGD_NESTEROV: False
|
| 101 |
+
STAGED_LR: False
|
| 102 |
+
STEPSIZE: (-1,)
|
| 103 |
+
WARMUP_CONS_LR: 1e-05
|
| 104 |
+
WARMUP_EPOCH: 1
|
| 105 |
+
WARMUP_MIN_LR: 1e-05
|
| 106 |
+
WARMUP_RECOUNT: True
|
| 107 |
+
WARMUP_TYPE: constant
|
| 108 |
+
WEIGHT_DECAY: 0.0005
|
| 109 |
+
OUTPUT_DIR: output_reproduce/base2new/test_new/retina/shots_16/seed2
|
| 110 |
+
RESUME:
|
| 111 |
+
SEED: 2
|
| 112 |
+
TEST:
|
| 113 |
+
COMPUTE_CMAT: False
|
| 114 |
+
EVALUATOR: Classification
|
| 115 |
+
FINAL_MODEL: last_step
|
| 116 |
+
NO_TEST: False
|
| 117 |
+
PER_CLASS_RESULT: False
|
| 118 |
+
SPLIT: test
|
| 119 |
+
TRAIN:
|
| 120 |
+
CHECKPOINT_FREQ: 0
|
| 121 |
+
COUNT_ITER: train_x
|
| 122 |
+
PRINT_FREQ: 20
|
| 123 |
+
TRAINER:
|
| 124 |
+
BIOMEDCOOP:
|
| 125 |
+
CLASS_TOKEN_POSITION: end
|
| 126 |
+
CSC: False
|
| 127 |
+
CTX_INIT: a photo of a
|
| 128 |
+
KDSP_LAMBDA: 1.0
|
| 129 |
+
N_CTX: 4
|
| 130 |
+
N_PROMPTS: 50
|
| 131 |
+
PREC: fp32
|
| 132 |
+
SCCM_LAMBDA: 5.0
|
| 133 |
+
TAU: 2.0
|
| 134 |
+
CG:
|
| 135 |
+
ALPHA_D: 0.5
|
| 136 |
+
ALPHA_F: 0.5
|
| 137 |
+
EPS_D: 1.0
|
| 138 |
+
EPS_F: 1.0
|
| 139 |
+
COCOOP:
|
| 140 |
+
CLASS_TOKEN_POSITION: end
|
| 141 |
+
CSC: False
|
| 142 |
+
CTX_INIT:
|
| 143 |
+
N_CTX: 4
|
| 144 |
+
PREC: fp32
|
| 145 |
+
COOP:
|
| 146 |
+
CLASS_TOKEN_POSITION: end
|
| 147 |
+
CSC: False
|
| 148 |
+
CTX_INIT:
|
| 149 |
+
N_CTX: 4
|
| 150 |
+
PREC: fp32
|
| 151 |
+
DAEL:
|
| 152 |
+
CONF_THRE: 0.95
|
| 153 |
+
STRONG_TRANSFORMS: ()
|
| 154 |
+
WEIGHT_U: 0.5
|
| 155 |
+
DDAIG:
|
| 156 |
+
ALPHA: 0.5
|
| 157 |
+
CLAMP: False
|
| 158 |
+
CLAMP_MAX: 1.0
|
| 159 |
+
CLAMP_MIN: -1.0
|
| 160 |
+
G_ARCH:
|
| 161 |
+
LMDA: 0.3
|
| 162 |
+
WARMUP: 0
|
| 163 |
+
ENTMIN:
|
| 164 |
+
LMDA: 0.001
|
| 165 |
+
FIXMATCH:
|
| 166 |
+
CONF_THRE: 0.95
|
| 167 |
+
STRONG_TRANSFORMS: ()
|
| 168 |
+
WEIGHT_U: 1.0
|
| 169 |
+
KGCOOP:
|
| 170 |
+
CLASS_TOKEN_POSITION: end
|
| 171 |
+
CSC: False
|
| 172 |
+
CTX_INIT: a photo of a
|
| 173 |
+
N_CTX: 4
|
| 174 |
+
PREC: fp32
|
| 175 |
+
W: 1.0
|
| 176 |
+
M3SDA:
|
| 177 |
+
LMDA: 0.5
|
| 178 |
+
N_STEP_F: 4
|
| 179 |
+
MCD:
|
| 180 |
+
N_STEP_F: 4
|
| 181 |
+
MEANTEA:
|
| 182 |
+
EMA_ALPHA: 0.999
|
| 183 |
+
RAMPUP: 5
|
| 184 |
+
WEIGHT_U: 1.0
|
| 185 |
+
MIXMATCH:
|
| 186 |
+
MIXUP_BETA: 0.75
|
| 187 |
+
RAMPUP: 20000
|
| 188 |
+
TEMP: 2.0
|
| 189 |
+
WEIGHT_U: 100.0
|
| 190 |
+
MME:
|
| 191 |
+
LMDA: 0.1
|
| 192 |
+
NAME: BiomedCoOp_BiomedCLIP
|
| 193 |
+
PROGRAD:
|
| 194 |
+
ALPHA: 0.0
|
| 195 |
+
CLASS_TOKEN_POSITION: end
|
| 196 |
+
CSC: False
|
| 197 |
+
CTX_INIT: a photo of a
|
| 198 |
+
GM: False
|
| 199 |
+
LAMBDA: 1.0
|
| 200 |
+
NAME:
|
| 201 |
+
N_CTX: 4
|
| 202 |
+
PREC: fp32
|
| 203 |
+
T: 1.0
|
| 204 |
+
SE:
|
| 205 |
+
CONF_THRE: 0.95
|
| 206 |
+
EMA_ALPHA: 0.999
|
| 207 |
+
RAMPUP: 300
|
| 208 |
+
USE_CUDA: True
|
| 209 |
+
VERBOSE: True
|
| 210 |
+
VERSION: 1
|
| 211 |
+
Collecting env info ...
|
| 212 |
+
** System info **
|
| 213 |
+
PyTorch version: 2.0.1+cu118
|
| 214 |
+
Is debug build: False
|
| 215 |
+
CUDA used to build PyTorch: 11.8
|
| 216 |
+
ROCM used to build PyTorch: N/A
|
| 217 |
+
|
| 218 |
+
OS: Ubuntu 22.04.5 LTS (x86_64)
|
| 219 |
+
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
|
| 220 |
+
Clang version: Could not collect
|
| 221 |
+
CMake version: version 3.25.0
|
| 222 |
+
Libc version: glibc-2.35
|
| 223 |
+
|
| 224 |
+
Python version: 3.10.15 (main, Oct 3 2024, 07:27:34) [GCC 11.2.0] (64-bit runtime)
|
| 225 |
+
Python platform: Linux-5.15.0-134-generic-x86_64-with-glibc2.35
|
| 226 |
+
Is CUDA available: True
|
| 227 |
+
CUDA runtime version: 12.8.61
|
| 228 |
+
CUDA_MODULE_LOADING set to: LAZY
|
| 229 |
+
GPU models and configuration:
|
| 230 |
+
GPU 0: NVIDIA A100-SXM4-40GB
|
| 231 |
+
GPU 1: NVIDIA A100-SXM4-40GB
|
| 232 |
+
GPU 2: NVIDIA A100-SXM4-40GB
|
| 233 |
+
GPU 3: NVIDIA A100-SXM4-40GB
|
| 234 |
+
|
| 235 |
+
Nvidia driver version: 570.124.06
|
| 236 |
+
cuDNN version: Could not collect
|
| 237 |
+
HIP runtime version: N/A
|
| 238 |
+
MIOpen runtime version: N/A
|
| 239 |
+
Is XNNPACK available: True
|
| 240 |
+
|
| 241 |
+
CPU:
|
| 242 |
+
Architecture: x86_64
|
| 243 |
+
CPU op-mode(s): 32-bit, 64-bit
|
| 244 |
+
Address sizes: 43 bits physical, 48 bits virtual
|
| 245 |
+
Byte Order: Little Endian
|
| 246 |
+
CPU(s): 128
|
| 247 |
+
On-line CPU(s) list: 0-127
|
| 248 |
+
Vendor ID: AuthenticAMD
|
| 249 |
+
Model name: AMD EPYC 7502 32-Core Processor
|
| 250 |
+
CPU family: 23
|
| 251 |
+
Model: 49
|
| 252 |
+
Thread(s) per core: 2
|
| 253 |
+
Core(s) per socket: 32
|
| 254 |
+
Socket(s): 2
|
| 255 |
+
Stepping: 0
|
| 256 |
+
Frequency boost: enabled
|
| 257 |
+
CPU max MHz: 2500.0000
|
| 258 |
+
CPU min MHz: 1500.0000
|
| 259 |
+
BogoMIPS: 4999.71
|
| 260 |
+
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sme sev sev_es
|
| 261 |
+
Virtualization: AMD-V
|
| 262 |
+
L1d cache: 2 MiB (64 instances)
|
| 263 |
+
L1i cache: 2 MiB (64 instances)
|
| 264 |
+
L2 cache: 32 MiB (64 instances)
|
| 265 |
+
L3 cache: 256 MiB (16 instances)
|
| 266 |
+
NUMA node(s): 2
|
| 267 |
+
NUMA node0 CPU(s): 0-31,64-95
|
| 268 |
+
NUMA node1 CPU(s): 32-63,96-127
|
| 269 |
+
Vulnerability Gather data sampling: Not affected
|
| 270 |
+
Vulnerability Itlb multihit: Not affected
|
| 271 |
+
Vulnerability L1tf: Not affected
|
| 272 |
+
Vulnerability Mds: Not affected
|
| 273 |
+
Vulnerability Meltdown: Not affected
|
| 274 |
+
Vulnerability Mmio stale data: Not affected
|
| 275 |
+
Vulnerability Reg file data sampling: Not affected
|
| 276 |
+
Vulnerability Retbleed: Mitigation; untrained return thunk; SMT enabled with STIBP protection
|
| 277 |
+
Vulnerability Spec rstack overflow: Mitigation; safe RET
|
| 278 |
+
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
|
| 279 |
+
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
|
| 280 |
+
Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
|
| 281 |
+
Vulnerability Srbds: Not affected
|
| 282 |
+
Vulnerability Tsx async abort: Not affected
|
| 283 |
+
|
| 284 |
+
Versions of relevant libraries:
|
| 285 |
+
[pip3] numpy==1.26.3
|
| 286 |
+
[pip3] torch==2.0.1+cu118
|
| 287 |
+
[pip3] torchvision==0.15.2+cu118
|
| 288 |
+
[conda] numpy 1.26.3 pypi_0 pypi
|
| 289 |
+
[conda] torch 2.0.1+cu118 pypi_0 pypi
|
| 290 |
+
[conda] torchvision 0.15.2+cu118 pypi_0 pypi
|
| 291 |
+
Pillow (10.2.0)
|
| 292 |
+
|
| 293 |
+
Loading trainer: BiomedCoOp_BiomedCLIP
|
| 294 |
+
Loading dataset: RETINA
|
| 295 |
+
Reading split from /data/t_kol/BiomedCoOp/DATA/RETINA/split_RETINA.json
|
| 296 |
+
Loading preprocessed few-shot data from /data/t_kol/BiomedCoOp/DATA/RETINA/split_fewshot/shot_16-seed_2.pkl
|
| 297 |
+
SUBSAMPLE NEW CLASSES!
|
| 298 |
+
Building transform_train
|
| 299 |
+
+ random resized crop (size=(224, 224))
|
| 300 |
+
+ to torch tensor of range [0, 1]
|
| 301 |
+
+ normalization (mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711])
|
| 302 |
+
Building transform_test
|
| 303 |
+
+ resize the smaller edge to 224
|
| 304 |
+
+ 224x224 center crop
|
| 305 |
+
+ to torch tensor of range [0, 1]
|
| 306 |
+
+ normalization (mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711])
|
| 307 |
+
***** Dataset statistics *****
|
| 308 |
+
Dataset: RETINA
|
| 309 |
+
# classes: 2
|
| 310 |
+
# train_x: 32
|
| 311 |
+
# val: 8
|
| 312 |
+
# test: 635
|
| 313 |
+
Loading BiomedCLIP (backbone: ViT-B/16)
|
| 314 |
+
Building custom CLIP
|
| 315 |
+
Initial text context: "a photo of a"
|
| 316 |
+
Number of context words (tokens) for Language prompting: 4
|
| 317 |
+
Turning off gradients in both the image and the text encoder
|
| 318 |
+
Parameters to be updated: {'prompt_learner.ctx'}
|
| 319 |
+
Parameters count: 1
|
| 320 |
+
Loading evaluator: Classification
|
| 321 |
+
Trainer built successfully.
|
| 322 |
+
Loading weights to prompt_learner from "output_reproduce/base2new/train_base/retina/shots_16/seed2/prompt_learner/model.pth.tar-50" (epoch = 50)
|
| 323 |
+
Do evaluation on test set
|
| 324 |
+
=> result
|
| 325 |
+
* total: 635
|
| 326 |
+
* correct: 345
|
| 327 |
+
* accuracy: 54.33%
|
| 328 |
+
* error: 45.67%
|
| 329 |
+
* macro_f1: 44.52%
|
base2new/test_new/retina/shots_16/BiomedCoOp_BiomedCLIP/nctx4_cscFalse_ctpend/seed3/log.txt
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
***************
|
| 2 |
+
** Arguments **
|
| 3 |
+
***************
|
| 4 |
+
backbone:
|
| 5 |
+
config_file: configs/trainers/BiomedCoOp_BiomedCLIP/base_to_novel/retina.yaml
|
| 6 |
+
dataset_config_file: configs/datasets/retina.yaml
|
| 7 |
+
eval_only: True
|
| 8 |
+
head:
|
| 9 |
+
load_epoch: 50
|
| 10 |
+
model_dir: output_reproduce/base2new/train_base/retina/shots_16/seed3
|
| 11 |
+
no_train: False
|
| 12 |
+
opts: ['DATASET.NUM_SHOTS', '16', 'DATASET.SUBSAMPLE_CLASSES', 'new']
|
| 13 |
+
output_dir: output_reproduce/base2new/test_new/retina/shots_16/seed3
|
| 14 |
+
resume:
|
| 15 |
+
root: DATA
|
| 16 |
+
seed: 3
|
| 17 |
+
source_domains: None
|
| 18 |
+
target_domains: None
|
| 19 |
+
trainer: BiomedCoOp_BiomedCLIP
|
| 20 |
+
transforms: None
|
| 21 |
+
************
|
| 22 |
+
** Config **
|
| 23 |
+
************
|
| 24 |
+
DATALOADER:
|
| 25 |
+
K_TRANSFORMS: 1
|
| 26 |
+
NUM_WORKERS: 8
|
| 27 |
+
RETURN_IMG0: False
|
| 28 |
+
TEST:
|
| 29 |
+
BATCH_SIZE: 100
|
| 30 |
+
SAMPLER: SequentialSampler
|
| 31 |
+
TRAIN_U:
|
| 32 |
+
BATCH_SIZE: 32
|
| 33 |
+
N_DOMAIN: 0
|
| 34 |
+
N_INS: 16
|
| 35 |
+
SAME_AS_X: True
|
| 36 |
+
SAMPLER: RandomSampler
|
| 37 |
+
TRAIN_X:
|
| 38 |
+
BATCH_SIZE: 4
|
| 39 |
+
N_DOMAIN: 0
|
| 40 |
+
N_INS: 16
|
| 41 |
+
SAMPLER: RandomSampler
|
| 42 |
+
DATASET:
|
| 43 |
+
ALL_AS_UNLABELED: False
|
| 44 |
+
CIFAR_C_LEVEL: 1
|
| 45 |
+
CIFAR_C_TYPE:
|
| 46 |
+
NAME: RETINA
|
| 47 |
+
NUM_LABELED: -1
|
| 48 |
+
NUM_SHOTS: 16
|
| 49 |
+
ROOT: DATA
|
| 50 |
+
SOURCE_DOMAINS: ()
|
| 51 |
+
STL10_FOLD: -1
|
| 52 |
+
SUBSAMPLE_CLASSES: new
|
| 53 |
+
TARGET_DOMAINS: ()
|
| 54 |
+
VAL_PERCENT: 0.1
|
| 55 |
+
INPUT:
|
| 56 |
+
COLORJITTER_B: 0.4
|
| 57 |
+
COLORJITTER_C: 0.4
|
| 58 |
+
COLORJITTER_H: 0.1
|
| 59 |
+
COLORJITTER_S: 0.4
|
| 60 |
+
CROP_PADDING: 4
|
| 61 |
+
CUTOUT_LEN: 16
|
| 62 |
+
CUTOUT_N: 1
|
| 63 |
+
GB_K: 21
|
| 64 |
+
GB_P: 0.5
|
| 65 |
+
GN_MEAN: 0.0
|
| 66 |
+
GN_STD: 0.15
|
| 67 |
+
INTERPOLATION: bicubic
|
| 68 |
+
NO_TRANSFORM: False
|
| 69 |
+
PIXEL_MEAN: [0.48145466, 0.4578275, 0.40821073]
|
| 70 |
+
PIXEL_STD: [0.26862954, 0.26130258, 0.27577711]
|
| 71 |
+
RANDAUGMENT_M: 10
|
| 72 |
+
RANDAUGMENT_N: 2
|
| 73 |
+
RGS_P: 0.2
|
| 74 |
+
SIZE: (224, 224)
|
| 75 |
+
TRANSFORMS: ('random_resized_crop', 'normalize')
|
| 76 |
+
MODEL:
|
| 77 |
+
BACKBONE:
|
| 78 |
+
NAME: ViT-B/16
|
| 79 |
+
PRETRAINED: True
|
| 80 |
+
HEAD:
|
| 81 |
+
ACTIVATION: relu
|
| 82 |
+
BN: True
|
| 83 |
+
DROPOUT: 0.0
|
| 84 |
+
HIDDEN_LAYERS: ()
|
| 85 |
+
NAME:
|
| 86 |
+
INIT_WEIGHTS:
|
| 87 |
+
OPTIM:
|
| 88 |
+
ADAM_BETA1: 0.9
|
| 89 |
+
ADAM_BETA2: 0.999
|
| 90 |
+
BASE_LR_MULT: 0.1
|
| 91 |
+
GAMMA: 0.1
|
| 92 |
+
LR: 0.0025
|
| 93 |
+
LR_SCHEDULER: cosine
|
| 94 |
+
MAX_EPOCH: 50
|
| 95 |
+
MOMENTUM: 0.9
|
| 96 |
+
NAME: sgd
|
| 97 |
+
NEW_LAYERS: ()
|
| 98 |
+
RMSPROP_ALPHA: 0.99
|
| 99 |
+
SGD_DAMPNING: 0
|
| 100 |
+
SGD_NESTEROV: False
|
| 101 |
+
STAGED_LR: False
|
| 102 |
+
STEPSIZE: (-1,)
|
| 103 |
+
WARMUP_CONS_LR: 1e-05
|
| 104 |
+
WARMUP_EPOCH: 1
|
| 105 |
+
WARMUP_MIN_LR: 1e-05
|
| 106 |
+
WARMUP_RECOUNT: True
|
| 107 |
+
WARMUP_TYPE: constant
|
| 108 |
+
WEIGHT_DECAY: 0.0005
|
| 109 |
+
OUTPUT_DIR: output_reproduce/base2new/test_new/retina/shots_16/seed3
|
| 110 |
+
RESUME:
|
| 111 |
+
SEED: 3
|
| 112 |
+
TEST:
|
| 113 |
+
COMPUTE_CMAT: False
|
| 114 |
+
EVALUATOR: Classification
|
| 115 |
+
FINAL_MODEL: last_step
|
| 116 |
+
NO_TEST: False
|
| 117 |
+
PER_CLASS_RESULT: False
|
| 118 |
+
SPLIT: test
|
| 119 |
+
TRAIN:
|
| 120 |
+
CHECKPOINT_FREQ: 0
|
| 121 |
+
COUNT_ITER: train_x
|
| 122 |
+
PRINT_FREQ: 20
|
| 123 |
+
TRAINER:
|
| 124 |
+
BIOMEDCOOP:
|
| 125 |
+
CLASS_TOKEN_POSITION: end
|
| 126 |
+
CSC: False
|
| 127 |
+
CTX_INIT: a photo of a
|
| 128 |
+
KDSP_LAMBDA: 1.0
|
| 129 |
+
N_CTX: 4
|
| 130 |
+
N_PROMPTS: 50
|
| 131 |
+
PREC: fp32
|
| 132 |
+
SCCM_LAMBDA: 5.0
|
| 133 |
+
TAU: 2.0
|
| 134 |
+
CG:
|
| 135 |
+
ALPHA_D: 0.5
|
| 136 |
+
ALPHA_F: 0.5
|
| 137 |
+
EPS_D: 1.0
|
| 138 |
+
EPS_F: 1.0
|
| 139 |
+
COCOOP:
|
| 140 |
+
CLASS_TOKEN_POSITION: end
|
| 141 |
+
CSC: False
|
| 142 |
+
CTX_INIT:
|
| 143 |
+
N_CTX: 4
|
| 144 |
+
PREC: fp32
|
| 145 |
+
COOP:
|
| 146 |
+
CLASS_TOKEN_POSITION: end
|
| 147 |
+
CSC: False
|
| 148 |
+
CTX_INIT:
|
| 149 |
+
N_CTX: 4
|
| 150 |
+
PREC: fp32
|
| 151 |
+
DAEL:
|
| 152 |
+
CONF_THRE: 0.95
|
| 153 |
+
STRONG_TRANSFORMS: ()
|
| 154 |
+
WEIGHT_U: 0.5
|
| 155 |
+
DDAIG:
|
| 156 |
+
ALPHA: 0.5
|
| 157 |
+
CLAMP: False
|
| 158 |
+
CLAMP_MAX: 1.0
|
| 159 |
+
CLAMP_MIN: -1.0
|
| 160 |
+
G_ARCH:
|
| 161 |
+
LMDA: 0.3
|
| 162 |
+
WARMUP: 0
|
| 163 |
+
ENTMIN:
|
| 164 |
+
LMDA: 0.001
|
| 165 |
+
FIXMATCH:
|
| 166 |
+
CONF_THRE: 0.95
|
| 167 |
+
STRONG_TRANSFORMS: ()
|
| 168 |
+
WEIGHT_U: 1.0
|
| 169 |
+
KGCOOP:
|
| 170 |
+
CLASS_TOKEN_POSITION: end
|
| 171 |
+
CSC: False
|
| 172 |
+
CTX_INIT: a photo of a
|
| 173 |
+
N_CTX: 4
|
| 174 |
+
PREC: fp32
|
| 175 |
+
W: 1.0
|
| 176 |
+
M3SDA:
|
| 177 |
+
LMDA: 0.5
|
| 178 |
+
N_STEP_F: 4
|
| 179 |
+
MCD:
|
| 180 |
+
N_STEP_F: 4
|
| 181 |
+
MEANTEA:
|
| 182 |
+
EMA_ALPHA: 0.999
|
| 183 |
+
RAMPUP: 5
|
| 184 |
+
WEIGHT_U: 1.0
|
| 185 |
+
MIXMATCH:
|
| 186 |
+
MIXUP_BETA: 0.75
|
| 187 |
+
RAMPUP: 20000
|
| 188 |
+
TEMP: 2.0
|
| 189 |
+
WEIGHT_U: 100.0
|
| 190 |
+
MME:
|
| 191 |
+
LMDA: 0.1
|
| 192 |
+
NAME: BiomedCoOp_BiomedCLIP
|
| 193 |
+
PROGRAD:
|
| 194 |
+
ALPHA: 0.0
|
| 195 |
+
CLASS_TOKEN_POSITION: end
|
| 196 |
+
CSC: False
|
| 197 |
+
CTX_INIT: a photo of a
|
| 198 |
+
GM: False
|
| 199 |
+
LAMBDA: 1.0
|
| 200 |
+
NAME:
|
| 201 |
+
N_CTX: 4
|
| 202 |
+
PREC: fp32
|
| 203 |
+
T: 1.0
|
| 204 |
+
SE:
|
| 205 |
+
CONF_THRE: 0.95
|
| 206 |
+
EMA_ALPHA: 0.999
|
| 207 |
+
RAMPUP: 300
|
| 208 |
+
USE_CUDA: True
|
| 209 |
+
VERBOSE: True
|
| 210 |
+
VERSION: 1
|
| 211 |
+
Collecting env info ...
|
| 212 |
+
** System info **
|
| 213 |
+
PyTorch version: 2.0.1+cu118
|
| 214 |
+
Is debug build: False
|
| 215 |
+
CUDA used to build PyTorch: 11.8
|
| 216 |
+
ROCM used to build PyTorch: N/A
|
| 217 |
+
|
| 218 |
+
OS: Ubuntu 22.04.5 LTS (x86_64)
|
| 219 |
+
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
|
| 220 |
+
Clang version: Could not collect
|
| 221 |
+
CMake version: version 3.25.0
|
| 222 |
+
Libc version: glibc-2.35
|
| 223 |
+
|
| 224 |
+
Python version: 3.10.15 (main, Oct 3 2024, 07:27:34) [GCC 11.2.0] (64-bit runtime)
|
| 225 |
+
Python platform: Linux-5.15.0-134-generic-x86_64-with-glibc2.35
|
| 226 |
+
Is CUDA available: True
|
| 227 |
+
CUDA runtime version: 12.8.61
|
| 228 |
+
CUDA_MODULE_LOADING set to: LAZY
|
| 229 |
+
GPU models and configuration:
|
| 230 |
+
GPU 0: NVIDIA A100-SXM4-40GB
|
| 231 |
+
GPU 1: NVIDIA A100-SXM4-40GB
|
| 232 |
+
GPU 2: NVIDIA A100-SXM4-40GB
|
| 233 |
+
GPU 3: NVIDIA A100-SXM4-40GB
|
| 234 |
+
|
| 235 |
+
Nvidia driver version: 570.124.06
|
| 236 |
+
cuDNN version: Could not collect
|
| 237 |
+
HIP runtime version: N/A
|
| 238 |
+
MIOpen runtime version: N/A
|
| 239 |
+
Is XNNPACK available: True
|
| 240 |
+
|
| 241 |
+
CPU:
|
| 242 |
+
Architecture: x86_64
|
| 243 |
+
CPU op-mode(s): 32-bit, 64-bit
|
| 244 |
+
Address sizes: 43 bits physical, 48 bits virtual
|
| 245 |
+
Byte Order: Little Endian
|
| 246 |
+
CPU(s): 128
|
| 247 |
+
On-line CPU(s) list: 0-127
|
| 248 |
+
Vendor ID: AuthenticAMD
|
| 249 |
+
Model name: AMD EPYC 7502 32-Core Processor
|
| 250 |
+
CPU family: 23
|
| 251 |
+
Model: 49
|
| 252 |
+
Thread(s) per core: 2
|
| 253 |
+
Core(s) per socket: 32
|
| 254 |
+
Socket(s): 2
|
| 255 |
+
Stepping: 0
|
| 256 |
+
Frequency boost: enabled
|
| 257 |
+
CPU max MHz: 2500.0000
|
| 258 |
+
CPU min MHz: 1500.0000
|
| 259 |
+
BogoMIPS: 4999.71
|
| 260 |
+
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sme sev sev_es
|
| 261 |
+
Virtualization: AMD-V
|
| 262 |
+
L1d cache: 2 MiB (64 instances)
|
| 263 |
+
L1i cache: 2 MiB (64 instances)
|
| 264 |
+
L2 cache: 32 MiB (64 instances)
|
| 265 |
+
L3 cache: 256 MiB (16 instances)
|
| 266 |
+
NUMA node(s): 2
|
| 267 |
+
NUMA node0 CPU(s): 0-31,64-95
|
| 268 |
+
NUMA node1 CPU(s): 32-63,96-127
|
| 269 |
+
Vulnerability Gather data sampling: Not affected
|
| 270 |
+
Vulnerability Itlb multihit: Not affected
|
| 271 |
+
Vulnerability L1tf: Not affected
|
| 272 |
+
Vulnerability Mds: Not affected
|
| 273 |
+
Vulnerability Meltdown: Not affected
|
| 274 |
+
Vulnerability Mmio stale data: Not affected
|
| 275 |
+
Vulnerability Reg file data sampling: Not affected
|
| 276 |
+
Vulnerability Retbleed: Mitigation; untrained return thunk; SMT enabled with STIBP protection
|
| 277 |
+
Vulnerability Spec rstack overflow: Mitigation; safe RET
|
| 278 |
+
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
|
| 279 |
+
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
|
| 280 |
+
Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
|
| 281 |
+
Vulnerability Srbds: Not affected
|
| 282 |
+
Vulnerability Tsx async abort: Not affected
|
| 283 |
+
|
| 284 |
+
Versions of relevant libraries:
|
| 285 |
+
[pip3] numpy==1.26.3
|
| 286 |
+
[pip3] torch==2.0.1+cu118
|
| 287 |
+
[pip3] torchvision==0.15.2+cu118
|
| 288 |
+
[conda] numpy 1.26.3 pypi_0 pypi
|
| 289 |
+
[conda] torch 2.0.1+cu118 pypi_0 pypi
|
| 290 |
+
[conda] torchvision 0.15.2+cu118 pypi_0 pypi
|
| 291 |
+
Pillow (10.2.0)
|
| 292 |
+
|
| 293 |
+
Loading trainer: BiomedCoOp_BiomedCLIP
|
| 294 |
+
Loading dataset: RETINA
|
| 295 |
+
Reading split from /data/t_kol/BiomedCoOp/DATA/RETINA/split_RETINA.json
|
| 296 |
+
Loading preprocessed few-shot data from /data/t_kol/BiomedCoOp/DATA/RETINA/split_fewshot/shot_16-seed_3.pkl
|
| 297 |
+
SUBSAMPLE NEW CLASSES!
|
| 298 |
+
Building transform_train
|
| 299 |
+
+ random resized crop (size=(224, 224))
|
| 300 |
+
+ to torch tensor of range [0, 1]
|
| 301 |
+
+ normalization (mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711])
|
| 302 |
+
Building transform_test
|
| 303 |
+
+ resize the smaller edge to 224
|
| 304 |
+
+ 224x224 center crop
|
| 305 |
+
+ to torch tensor of range [0, 1]
|
| 306 |
+
+ normalization (mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711])
|
| 307 |
+
***** Dataset statistics *****
|
| 308 |
+
Dataset: RETINA
|
| 309 |
+
# classes: 2
|
| 310 |
+
# train_x: 32
|
| 311 |
+
# val: 8
|
| 312 |
+
# test: 635
|
| 313 |
+
Loading BiomedCLIP (backbone: ViT-B/16)
|
| 314 |
+
Building custom CLIP
|
| 315 |
+
Initial text context: "a photo of a"
|
| 316 |
+
Number of context words (tokens) for Language prompting: 4
|
| 317 |
+
Turning off gradients in both the image and the text encoder
|
| 318 |
+
Parameters to be updated: {'prompt_learner.ctx'}
|
| 319 |
+
Parameters count: 1
|
| 320 |
+
Loading evaluator: Classification
|
| 321 |
+
Trainer built successfully.
|
| 322 |
+
Loading weights to prompt_learner from "output_reproduce/base2new/train_base/retina/shots_16/seed3/prompt_learner/model.pth.tar-50" (epoch = 50)
|
| 323 |
+
Do evaluation on test set
|
| 324 |
+
=> result
|
| 325 |
+
* total: 635
|
| 326 |
+
* correct: 450
|
| 327 |
+
* accuracy: 70.87%
|
| 328 |
+
* error: 29.13%
|
| 329 |
+
* macro_f1: 69.29%
|