Skip to content

AttributeError: 'EmptyManager' object has no attribute 'total_steps' #4

Description

@aheschl1

When loading the model with

model = VQModelHF.from_pretrained("BorelTHU/optvq-16x16x8")

an error is thrown, unless the model is in eval mode:

if L.log.total_steps % 1000 == 0:
       ^^^^^^^^^^^^^^^^^
AttributeError: 'EmptyManager' object has no attribute 'total_steps'

After model.encode(x)

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