Skip to content

Demo is not working out of the box, tinkering required #2

@NickyFot

Description

@NickyFot

The demo produced 2 errors when running.

FileNotFoundError: [Errno 2] No such file or directory: './model/MEFL.py'
MEFL.py needs to be copied from the main repo.

Then once this is fixed:
FileNotFoundError: [Errno 2] No such file or directory: 'pretrain_models/swin_base_patch4_window7_224.pth'

To fix this, add parameter pretrained=False to the constructor on line 148 of ANFL.py so that it changes the line from this:
self.backbone = swin_transformer_base()
to this:
self.backbone = swin_transformer_base(pretrained=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions