-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AttributeError: 'Args' object has no attribute 'seek'. in notebook #50
Comments
modify build_model( ) from networks.models like this. def build_model(weights):
import io
weights = weights.weights
net_encoder = fba_encoder()
net_decoder = fba_decoder()
model = MattingModule(net_encoder, net_decoder)
if(weights != 'default'):
with open(weights, 'rb') as f:
buffer = io.BytesIO(f.read())
# sd = torch.load(weights)
sd = torch.load(buffer)
model.load_state_dict(sd, strict=True)
return model
|
the same, useless |
Got the solution? |
Anyone found the solution?? |
To fix this error replace |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Using FBA Matting.ipynb in Gooble Colab, at the source code below,
the following error occurred.
Please tell me the cause of the error and how to fix it.
The text was updated successfully, but these errors were encountered: