Closed zhulinchng closed 1 month ago
@zhulinchng
extra_tokens["channels"] should contain the indices of channels included in the batch and should be of shape batch_size x n_channels
.
The following thread has additional details and links to examples for setting it correctly https://github.com/insitro/ChannelViT/issues/3#issuecomment-2027716674
I'm trying to customize and use the backbone channelvits and hcs_channelvits, but there seem to be no reference to the 'channels' in the forward pass of the
PatchEmbedPerChannel
class. What is the value forextra_tokens["channels"]
supposed to look like?https://github.com/insitro/ChannelViT/blob/1077a103e30cf20b6223b64935666962d0e2e836/channelvit/backbone/channel_vit.py#L56
https://github.com/insitro/ChannelViT/blob/1077a103e30cf20b6223b64935666962d0e2e836/channelvit/backbone/hcs_channel_vit.py#L61