Skip to content

Grayscale and Multispectral Imagery Support #180

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

isaaccorley
Copy link

Description

This fixes #75 which modifies the pretrained model weights in the conv layer of the patch embeddings to support imagery with num_channels != 3. No additional dependencies are required.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How has this change been tested, please provide a testcase or example of how you tested the change?

Added tests in the tests/ folder for both RFDETRBase and RFDETRLarge where num_channels = 1 or 4

Any specific deployment considerations

N/A

Docs

  • Docs updated? What were the changes:

@CLAassistant
Copy link

CLAassistant commented Apr 24, 2025

CLA assistant check
All committers have signed the CLA.

@isaaccorley
Copy link
Author

I have read the CLA Document and I sign the CLA.

@SkalskiP
Copy link
Collaborator

SkalskiP commented May 6, 2025

Hi @isaaccorley 👋🏻 Thanks so much for the work you’ve done! The past couple of weeks have been pretty hectic, and we haven’t had a chance to review your PR yet.

Have you had a chance to test this change? Do you have any sample fine-tuning or prediction code we could use to verify it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for num_channels>3
3 participants