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)
When loading the model with
an error is thrown, unless the model is in eval mode:
After model.encode(x)