You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Training for the downstream task I got the checkpoint_best.pt file and then instantiated the network with the following code:
from models.ofa.ofa import OFAModel
net = OFAModel.from_pretrained(checkpoint_file=“checkpoint_best.pt”)
However, an error was reported:
Traceback (most recent call last).
File “test.py”, line 2, in
net = OFAModel.from_pretrained(checkpoint_file=“checkpoint_best.pt”)
TypeError: from_pretrained() missing 1 required positional argument: 'model_name_or_path'
So here's the required argument
What does model_name_or_path mean?
The text was updated successfully, but these errors were encountered:
Training for the downstream task I got the checkpoint_best.pt file and then instantiated the network with the following code:
from models.ofa.ofa import OFAModel
net = OFAModel.from_pretrained(checkpoint_file=“checkpoint_best.pt”)
However, an error was reported:
Traceback (most recent call last).
File “test.py”, line 2, in
net = OFAModel.from_pretrained(checkpoint_file=“checkpoint_best.pt”)
TypeError: from_pretrained() missing 1 required positional argument: 'model_name_or_path'
So here's the required argument
What does model_name_or_path mean?
The text was updated successfully, but these errors were encountered: