Optimum parameters for eurosat.yaml #1620
-
Testing the new LightningCLI with the supplied eurosat.yaml example, running first
I will do some experimentation, but keen to hear if anyone has better parameters to try? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
The default weights are random. I would try setting these to imagenet weights. Also increase patience to avoid the early stopping. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm pretty sure the test command is using random weights instead of the
trained weights.
…On Thu, Oct 5, 2023, 4:17 PM Robin Cole ***@***.***> wrote:
Something is off. Ive set
model:
class_path: ClassificationTask
init_args:
loss: "ce"
model: "resnet18"
lr: 1e-3
patience: 10
weights: true
in_channels: 13
num_classes: 10
Train and val metrics look good:
[image: image]
<https://user-images.githubusercontent.com/11855322/272932442-53326cbf-77f9-427a-9768-697e7aeb46eb.png>
[image: image]
<https://user-images.githubusercontent.com/11855322/272932545-bd85ac9e-739b-4a72-951e-e0b1393ad236.png>
wandb:
wandb: Run summary:
wandb: epoch 9
wandb: train_AverageAccuracy 0.98333
wandb: train_F1Score 0.98611
wandb: train_JaccardIndex 0.96333
wandb: train_OverallAccuracy 0.98611
wandb: train_loss 0.03321
wandb: trainer/global_step 1269
wandb: val_AverageAccuracy 0.96023
wandb: val_F1Score 0.9613
wandb: val_JaccardIndex 0.92377
wandb: val_OverallAccuracy 0.9613
wandb: val_loss 0.15133
But then test are terrible:
wandb: Run summary:
wandb: epoch 0
wandb: test_AverageAccuracy 0.15452
wandb: test_F1Score 0.15259
wandb: test_JaccardIndex 0.06478
wandb: test_OverallAccuracy 0.15259
wandb: test_loss 2.32303
wandb: trainer/global_step 0
—
Reply to this email directly, view it on GitHub
<#1620 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIJUTVR35NQYY7USUC3DDTX526PNAVCNFSM6AAAAAA5UDGZEWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TCOJZGA2DA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes that must be the case. If I run in a notebook I get
|
Beta Was this translation helpful? Give feedback.
-
OK for some reason EuroSATDataModule was returning the version with 100 images only. Will attempt to reproduce |
Beta Was this translation helpful? Give feedback.
-
Updated, now running full dataset:
Achieves
|
Beta Was this translation helpful? Give feedback.
-
I tried using the S2 weights with
|
Beta Was this translation helpful? Give feedback.
-
And using the RGB bands with
There is a lot of potential for optimisation, but at least initially it appears RGB do most of the work. Im interested in doing a more comprehensive eval like this and really understanding the significance of each channel |
Beta Was this translation helpful? Give feedback.
Updated, now running full dataset:
Achieves