-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
501 add vision transformer model #542
501 add vision transformer model #542
Conversation
This reverts commit 07dfeb5.
…into 501-add-vision-transformer-model
tests/dataset/test_aoi.py
Outdated
@@ -95,7 +95,6 @@ def test_stac_input(self): | |||
aoi = AOI( | |||
raster=row['tif'], label=row['gpkg'], split=row['split'], | |||
raster_bands_request=bands) | |||
assert aoi.raster_bands_request == bands |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I removed it for testing before pulling recent changes in 'develop'. I would revert back
tests/model/test_models.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we create a new test for a 3 bands model and keep this one a test for a 4 bands model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can, but I think all models in GDL should work with at least 3 bands regardless of configuration. So can we keep the 3 band tests for validating all models in GDL
1cec7b0
Thank you for submitting your PR and helping us with GDL.
Please read the template below, fill it out as appropriate, and make additional changes to your code as needed.
Please feel free to submit your PR even if it doesn't satisfy all of the requirements below.
If you need assistance or review from a maintainer, add the label Status: Help Needed or Status: Review Needed respectively.
After review, a maintainer will add the label Status: Revision Needed if further work is required for the PR to be merged.
Description
This PR adds a vision transformer (Segformer) model architecture. it completes feature #501
Type of change
What types of changes does your code introduce? Put an
x
in all the boxes that apply:How Has This Been Tested?
Unit tests updated
Screenshots (if applicable):
Checklist:
If you're unsure about any of these, don't hesitate to ask. We're here to help!
If your PR does not fulfill all of the requirements in the checklist above, that's OK! If you need help, @-mention a maintainer and/or add the Status: Help Needed label.