07/03/2023 05:43:12 PM root INFO Experiment args: 
07/03/2023 05:43:12 PM root INFO  > stream_config = ./configs/stream/CIFAR10B10.yaml
07/03/2023 05:43:12 PM root INFO  > method_config = ./configs/methods/NOTE.yaml
07/03/2023 05:43:12 PM root INFO  > model = ResNet18
07/03/2023 05:43:12 PM root INFO  > checkpoint = ./models/checkpoint/CIFAR10_ResNet18_note.pth
07/03/2023 05:43:12 PM root INFO  > result_dir = results
07/03/2023 05:43:12 PM root INFO  > seed = 0
07/03/2023 05:43:12 PM root INFO  > method.name = NOTE
07/03/2023 05:43:12 PM root INFO  > method.method = NOTE
07/03/2023 05:43:12 PM root INFO  > method.optim.lr = 1e-4
07/03/2023 05:43:12 PM root INFO  > method.optim.wd = 0.0
07/03/2023 05:43:12 PM root INFO  > method.optim.iabn_k = 4
07/03/2023 05:43:12 PM root INFO  > method.optim.bn_momentum = 0.01
07/03/2023 05:43:12 PM root INFO  > method.queue_size = 64
07/03/2023 05:43:12 PM root INFO  > method.use_learnt_stats = True
07/03/2023 05:43:12 PM root INFO  > stream.name = CIFAR10-10
07/03/2023 05:43:12 PM root INFO  > stream.dataset_dir = /data
07/03/2023 05:43:12 PM root INFO  > stream.batch_size = 64
07/03/2023 05:43:12 PM root INFO  > stream.dataset = CIFAR10CB
07/03/2023 05:43:12 PM root INFO  > stream.num_class = 10
07/03/2023 05:43:12 PM root INFO  > stream.severities = [5]
07/03/2023 05:43:12 PM root INFO  > stream.corruptions = ['gaussian_noise', 'shot_noise', 'impulse_noise', 'defocus_blur', 'glass_blur', 'motion_blur', 'zoom_blur', 'snow', 'frost', 'fog', 'brightness', 'contrast', 'elastic_transform', 'pixelate', 'jpeg_compression']
07/03/2023 05:43:12 PM root INFO  > stream.bind_class = [0, 0, 0, 1, 1, 1, 1, 8, 8, 8, 8, 9, 9, 9, 9]
07/03/2023 05:43:12 PM root INFO  > stream.bind_ratio = 10
07/03/2023 05:43:12 PM root INFO  > exp = CIFAR10-10_NOTE
07/03/2023 05:43:12 PM root INFO Resume model ResNet18 from checkpoint ./models/checkpoint/CIFAR10_ResNet18_note.pth.
07/03/2023 05:43:15 PM root INFO Setup TTA method: Note
07/03/2023 05:43:15 PM root INFO  > model for adaptation: DataParallel(
  (module): ResNet(
    (conv1): Conv2d(3, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
    (bn1): InstanceAwareBatchNorm2d(
      (_bn): BatchNorm2d(64, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
    )
    (layer1): Sequential(
      (0): BasicBlock(
        (conv1): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn1): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(64, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (conv2): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn2): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(64, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (shortcut): Sequential()
      )
      (1): BasicBlock(
        (conv1): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn1): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(64, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (conv2): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn2): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(64, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (shortcut): Sequential()
      )
    )
    (layer2): Sequential(
      (0): BasicBlock(
        (conv1): Conv2d(64, 128, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
        (bn1): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(128, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (conv2): Conv2d(128, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn2): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(128, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (shortcut): Sequential(
          (0): Conv2d(64, 128, kernel_size=(1, 1), stride=(2, 2), bias=False)
          (1): InstanceAwareBatchNorm2d(
            (_bn): BatchNorm2d(128, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
          )
        )
      )
      (1): BasicBlock(
        (conv1): Conv2d(128, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn1): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(128, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (conv2): Conv2d(128, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn2): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(128, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (shortcut): Sequential()
      )
    )
    (layer3): Sequential(
      (0): BasicBlock(
        (conv1): Conv2d(128, 256, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
        (bn1): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(256, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (conv2): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn2): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(256, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (shortcut): Sequential(
          (0): Conv2d(128, 256, kernel_size=(1, 1), stride=(2, 2), bias=False)
          (1): InstanceAwareBatchNorm2d(
            (_bn): BatchNorm2d(256, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
          )
        )
      )
      (1): BasicBlock(
        (conv1): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn1): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(256, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (conv2): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn2): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(256, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (shortcut): Sequential()
      )
    )
    (layer4): Sequential(
      (0): BasicBlock(
        (conv1): Conv2d(256, 512, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
        (bn1): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(512, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (conv2): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn2): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(512, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (shortcut): Sequential(
          (0): Conv2d(256, 512, kernel_size=(1, 1), stride=(2, 2), bias=False)
          (1): InstanceAwareBatchNorm2d(
            (_bn): BatchNorm2d(512, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
          )
        )
      )
      (1): BasicBlock(
        (conv1): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn1): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(512, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (conv2): Conv2d(512, 512, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
        (bn2): InstanceAwareBatchNorm2d(
          (_bn): BatchNorm2d(512, eps=1e-05, momentum=0.01, affine=True, track_running_stats=True)
        )
        (shortcut): Sequential()
      )
    )
    (linear): Linear(in_features=512, out_features=10, bias=True)
  )
)
07/03/2023 05:43:15 PM root INFO  > optimizer for adaptation: Adam (
Parameter Group 0
    amsgrad: False
    betas: (0.9, 0.999)
    eps: 1e-08
    lr: 0.0001
    weight_decay: 0.0
)
07/03/2023 05:43:15 PM root INFO  > Class Ratio: 
07/03/2023 05:43:15 PM root INFO [tensor(0.5263), tensor(0.0553), tensor(0.0474), tensor(0.0511), tensor(0.0421), tensor(0.0563), tensor(0.0563), tensor(0.0553), tensor(0.0516), tensor(0.0584)]
07/03/2023 05:43:18 PM root INFO  > [gaussian_noise-5]	Accuracy = 53.68%	Time = 2.19
07/03/2023 05:43:18 PM root INFO Classwise Stats
07/03/2023 05:43:18 PM root INFO  > Clas Idx     0	     1	     2	     3	     4	     5	     6	     7	     8	     9
07/03/2023 05:43:18 PM root INFO  > Gts  Cnt  1000	   105	    90	    97	    80	   107	   107	   105	    98	   111
07/03/2023 05:43:18 PM root INFO  > Pred Cnt   532	    46	   166	    86	   179	    36	   587	    52	   118	    98
07/03/2023 05:43:18 PM root INFO  > Clas Acc52.20%	42.86%	52.22%	28.87%	67.50%	28.97%	97.20%	48.57%	62.24%	69.37%
07/03/2023 05:43:18 PM root INFO  > Class Ratio: 
07/03/2023 05:43:18 PM root INFO [tensor(0.5263), tensor(0.0426), tensor(0.0626), tensor(0.0558), tensor(0.0489), tensor(0.0447), tensor(0.0547), tensor(0.0521), tensor(0.0563), tensor(0.0558)]
07/03/2023 05:43:19 PM root INFO  > [shot_noise-5]	Accuracy = 57.63%	Time = 1.44
07/03/2023 05:43:19 PM root INFO Classwise Stats
07/03/2023 05:43:19 PM root INFO  > Clas Idx     0	     1	     2	     3	     4	     5	     6	     7	     8	     9
07/03/2023 05:43:19 PM root INFO  > Gts  Cnt  1000	    81	   119	   106	    93	    85	   104	    99	   107	   106
07/03/2023 05:43:19 PM root INFO  > Pred Cnt   516	    63	   156	   102	   197	    33	   453	    52	   229	    99
07/03/2023 05:43:19 PM root INFO  > Clas Acc50.50%	76.54%	56.30%	41.51%	70.97%	25.88%	99.04%	49.49%	86.92%	79.25%
07/03/2023 05:43:19 PM root INFO  > Class Ratio: 
07/03/2023 05:43:19 PM root INFO [tensor(0.5263), tensor(0.0532), tensor(0.0505), tensor(0.0537), tensor(0.0484), tensor(0.0584), tensor(0.0553), tensor(0.0505), tensor(0.0516), tensor(0.0521)]
