Skip to content

Commit 10f55ed

Browse files
author
jangsoopark
committed
Documentation
1 parent 897e707 commit 10f55ed

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

README.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,36 @@ The proposed model only consists of **sparsely connected layers** without any fu
3939
| activation | linear | ReLU | ReLU | ReLU | ReLU | Softmax |
4040

4141
## Training
42+
For training, this implementation fixes the random seed to `12321` for `reproducibility`.
4243

43-
- [ ] Data Augmentation
44+
- [x] Data Augmentation
4445
- [ ] Back-propagation
4546
- [ ] Mini batch Stochastic Gradient Descent with Momentum
4647
- [ ] Weight Initialization
4748
- [ ] Learning Rate
4849
- [ ] Early Stopping
4950

51+
52+
### Data Augmentation
53+
Source code is `src/data/generate_dataset.py` and `src/data/mstar.py`
54+
- The author uses random shifting to extract 88 x 88 patches from 128 x 128 SAR image chips.
55+
- The number of training images per one SAR image chip could be increased at maximum by (128 - 88 + 1) x (128 - 88 + 1) = 1681.
56+
57+
- However, for SOC, this repository does not use random shifting tue to accuracy issue.
58+
- This implementation failed to achieve higher than 98% accuracy when using random sampling.
59+
- The implementation details for data augmentation is as:
60+
- Crop the center of 94 x 94 size image on 128 x 128 SAR image chip.
61+
- Extract 88 x 88 patches with stride 1 from 94 x 94 image.
62+
63+
5064
## Experiments
5165

5266
### Standard Operating Condition (SOC)
5367

5468
You can download from [MSTAR Overview](https://www.sdms.afrl.af.mil/index.php?collection=mstar)
5569

5670
- MSTAR Target Chips (T72 BMP2 BTR70 SLICY) which is **MSTAR-PublicTargetChips-T72-BMP2-BTR70-SLICY.zip**
57-
- MSTAR / IU Mixed Targets which consists of **MSTAR-PublicMixedTargets-CD1.zip** and **
58-
MSTAR-PublicMixedTargets-CD2.zip**
71+
- MSTAR / IU Mixed Targets which consists of **MSTAR-PublicMixedTargets-CD1.zip** and **MSTAR-PublicMixedTargets-CD2.zip**
5972
- **SLICY target is ignored**
6073

6174
| | | Train | | Test | |

src/asdf.py

-5
This file was deleted.

src/train.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,10 @@
2828

2929

3030
def load_dataset(path, is_train, name, batch_size):
31-
_transform = [torchvision.transforms.ToTensor()] # [preprocess.CenterCrop(88), torchvision.transforms.ToTensor()]
32-
# if is_train:
33-
# _transform = [preprocess.RandomCrop(88), torchvision.transforms.ToTensor()]
3431

3532
_dataset = loader.Dataset(
3633
path, name=name, is_train=is_train,
37-
transform=torchvision.transforms.Compose(_transform)
34+
transform=torchvision.transforms.Compose([torchvision.transforms.ToTensor()])
3835
)
3936
data_loader = torch.utils.data.DataLoader(
4037
_dataset, batch_size=batch_size, shuffle=is_train, num_workers=1

0 commit comments

Comments
 (0)