-
Notifications
You must be signed in to change notification settings - Fork 97
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
KeyError: 'inference' when applying solution weight to my data #232
Comments
Hi @willsbit, I think you should get it to work with Also, I have to say, I am not sure when will I be able to get to this issue. Sorry |
@jakubczakon Using only the first level model (unet) instead of scoring_model seems to solve the inference error, but now I'm getting some numpy exceptions
I noticed the squeeze_inputs function is in src/utils.py, but I don't know how to fix it |
The |
torch==0.3.1 and I got a new RunTimeError
I noticed that the data/checkpoints folder hadn't been created automatically... perhaps it's because I didn't train the model myself? I was thinking it could maybe be related to the issue |
forget what I said, I reuploaded unet and scoring_model to the transform folder and now it outputs the predictions
Here's the link to the image plot output (original on the left, masked on the right) Edit: I tried the vizualization method suggested here but I can't do it since I don't have ground truth json's. I tried using the predictions.json as ground truth, but after removing the {} (i was getting list type not supported), this is what i get:
|
I'd suggest to just use It seems that there is an issue with indexing which was discussed (with fixes) here. I hope this helps |
It works, yay! Thank you for all your help @jakubczakon |
Hey @willsbit I had the same error as you: and my solution is not using As described in REPRODUCE_RESULTS.md -> "Predict on new data" |
@pscheich didn't work for me :/
|
Hi @vishwa15
So in short you don't need to download it, you already have all the pieces. |
@jakubczakon I got it. Usually, saved model will be a single file. Here, we need two files. Thank you for clarifying. |
I'm trying to predict on new data using the model weights that were made available on neptune.ai
After struggling a bit with some other errors, I managed to get to the
python main.py predict_on_dir \
command.This is the command I'm running
I tried predict_on_dir but it said that command doesn't exist in main.py
now I'm stuck with this error:
I'm using google colab btw
Suggestions?
Edit: formatting
The text was updated successfully, but these errors were encountered: