Skip to content

Grayscale and Multispectral Imagery Support#180

Open
isaaccorley wants to merge 2 commits intoroboflow:developfrom
isaaccorley:multispectral-support
Open

Grayscale and Multispectral Imagery Support#180
isaaccorley wants to merge 2 commits intoroboflow:developfrom
isaaccorley:multispectral-support

Conversation

@isaaccorley
Copy link
Copy Markdown

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
Copy Markdown

CLAassistant commented Apr 24, 2025

CLA assistant check
All committers have signed the CLA.

@isaaccorley
Copy link
Copy Markdown
Author

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

@SkalskiP
Copy link
Copy Markdown
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?

@robmarkcole
Copy link
Copy Markdown

@isaaccorley any updates? Keen to try this

@landynfrancis
Copy link
Copy Markdown

Any update here? This is a feature (especially for 16 bit images) that I would be greatly interested in.

@Borda Borda added the enhancement New feature or request label Jan 22, 2026
@robmarkcole
Copy link
Copy Markdown

@isaacrob possible to reivew/merge? Enables users to train with MSI bands

@Borda Borda requested a review from isaacrob as a code owner February 11, 2026 15:57
@Borda Borda force-pushed the develop branch 4 times, most recently from 60b16c1 to 523f9df Compare February 14, 2026 06:46
@Borda Borda added the arch | API architecture label Feb 24, 2026
@Borda Borda force-pushed the develop branch 3 times, most recently from a6e6ca0 to 0485141 Compare March 13, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch | API architecture enhancement New feature or request has conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for num_channels>3

6 participants