Skip to content

expected input to have 3 channels, but got 1 channels instead #38

@FZJ2024

Description

@FZJ2024

File "/root/anaconda3/envs/Sam_PET/lib/python3.7/site-packages/segment_anything/modeling/image_encoder.py", line 392, in forward
x = self.proj(x)

Given groups=1, weight of size [768, 3, 16, 16], expected input[2540, 1, 1596, 1596] to have 3 channels, but got 1 channels instead

Dear authors,

Could you please help me to solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions