-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colab demo not working #32
Comments
Hi, thanks for pointing this out, I have updated the version and it should be fixed in the colab now |
For info, if I run the colab directly from your link, without copying it on my drive it works. Any hints on why is this happening? |
When I'm on a Tesla T4 seems working. I don't know if there is a way to choose the GPU selectively to test with another type of GPU though. Any other reasons why this could happen? |
I'm not sure about the reason for errors with specific GPUs, but I have updated the pretrained weights and demo notebooks, please git pull to latest commit and try again, thanks for raising the issue! |
I think I found the issue - that it is still there.
|
Hello,
I am trying to run your demo (with premium GPU or standard) but from the third block of code, something doesn't work.
`ValidationError Traceback (most recent call last)
in
18 text = "Did not enjoy the new Windows 8 and touchscreen functions ."
19 model = SpanModel(save_dir="pretrained_14lap", random_seed=0)
---> 20 sent = predict_sentence(text, model)
21
22 for t in sent.triples:
3 frames
in predict_sentence(text, model)
12 data = Data(root=Path(), data_split=SplitEnum.test, sentences=[sent])
13 data.save_to_path(path_in)
---> 14 model.predict(path_in, path_out)
15 data = Data.load_from_full_path(path_out)
16 return data.sentences[0]
/content/aste/wrapper.py in predict(self, path_in, path_out)
89
90 with open(path_temp_out) as f:
---> 91 preds = [SpanModelPrediction(**json.loads(line.strip())) for line in f]
92 data = Data(
93 root=Path(),
/content/aste/wrapper.py in (.0)
89
90 with open(path_temp_out) as f:
---> 91 preds = [SpanModelPrediction(**json.loads(line.strip())) for line in f]
92 data = Data(
93 root=Path(),
/usr/local/lib/python3.7/dist-packages/pydantic/main.cpython-37m-x86_64-linux-gnu.so in pydantic.main.BaseModel.init()
ValidationError: 1 validation error for SpanModelPrediction
predicted_relations
field required (type=value_error.missing)`
The text was updated successfully, but these errors were encountered: