# Sparse Regularization

requirements
> torchattacks == 3.2.7

Change the Dataset Folder Path in `utils.py`

To train a WideResNet model (SR*) 

```
python snn_main_train.py -dev=0 -lamb=0.002 -arch=wrn16 -data=cifar10 -atk=pgd -eps=2
```

To test a pretrained WideResNet model

```
python snn_main_test.py -dev=0 -arch=wrn16 -data=cifar10 -id=wrn16_snn_lamb[0.002]_pgd[2.0] -config=attack
```