Skip to content

Can't initiate the VitMatte model #17

@musja007

Description

@musja007

Hi all!

I'm trying to run the matte_anything.py in Google Collab but get the following error:


`Initializing models... Please wait...

AssertionError                            Traceback (most recent call last)

[<ipython-input-8-a4065ac3ce58>](https://localhost:8080/#) in <cell line: 30>()
     28 print('Initializing models... Please wait...')
     29 
---> 30 vitmatte = init_vitmatte(vitmatte_model)

4 frames

[/content/Matte-Anything/modeling/decoder/detail_capture.py](https://localhost:8080/#) in __init__(self, in_chans, img_chans, convstream_out, fusion_out)
    110     ):
    111         super().__init__()
--> 112         assert len(fusion_out) == len(convstream_out) + 1
    113 
    114         self.convstream = ConvStream(in_chans = img_chans)

AssertionError:`

My initial thought was that it is related to the torch version, so I made sure I have a correct one: 2.0.0+cu117, but the error still persists.

Thanks in advance!

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