Skip to content

Commit

Permalink
Merge pull request #5 from azizche/change_docs
Browse files Browse the repository at this point in the history
docs: adds train. prefix to the training arguments in the training tu…
  • Loading branch information
azizche authored Nov 13, 2024
2 parents 6b2bf19 + a9d33f0 commit 33468df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions instageo/model/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ Run training with the necessary flags:
python -m instageo.model.run \
root_dir=path/to/root valid_filepath=path/to/valdata \
train_filepath=path/to/traindata \
learning_rate=0.001 \
num_epochs=100 \
batch_size=4
train.learning_rate=0.001 \
train.num_epochs=100 \
train.batch_size=4
```

4. **Prediction using Sliding Window Inference:** For training we create chips from HLS tiles, this is necessary because our model can only process an input of size 224 x 224. For the purpose of inference we have a sliding window inference feature that inputs HLS tile and perform a sliding window inference on patches of size 224 x 224. This is useful because it skips the process of creating chips using the `instageo.data.chip_creator`, we only need to download HLS tiles and directly runs inference on them. We can run inference using the following command:
Expand Down Expand Up @@ -90,7 +90,7 @@ python -m instageo.model.run --config-name=sen1floods11 \
root_dir=sen1floods11 \
train_filepath=sen1floods11/flood_train_data.csv \
valid_filepath=sen1floods11/flood_valid_data.csv \
num_epochs=100
train.num_epochs=100
```
After training you are expected to have a checkpoint with mIoU of ~ 89%

Expand Down

0 comments on commit 33468df

Please sign in to comment.