Skip to content
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

404 error when trying to get weights #15

Open
ThomasMGeo opened this issue Jan 10, 2025 · 5 comments
Open

404 error when trying to get weights #15

ThomasMGeo opened this issue Jan 10, 2025 · 5 comments

Comments

@ThomasMGeo
Copy link

Block of code I am running into issue with:

!wget "https://raw.githubusercontent.com/zsylvester/segmenteverygrain/main/segmenteverygrain/checkpoints/checkpoint"
!wget "https://raw.githubusercontent.com/zsylvester/segmenteverygrain/main/segmenteverygrain/checkpoints/seg_model.data-00000-of-00001"
!wget "https://raw.githubusercontent.com/zsylvester/segmenteverygrain/main/segmenteverygrain/checkpoints/seg_model.index"

--2025-01-10 18:56:48-- https://raw.githubusercontent.com/zsylvester/segmenteverygrain/main/segmenteverygrain/checkpoints/checkpoint
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2025-01-10 18:56:48 ERROR 404: Not Found.

--2025-01-10 18:56:48-- https://raw.githubusercontent.com/zsylvester/segmenteverygrain/main/segmenteverygrain/checkpoints/seg_model.data-00000-of-00001
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2025-01-10 18:56:48 ERROR 404: Not Found.

--2025-01-10 18:56:49-- https://raw.githubusercontent.com/zsylvester/segmenteverygrain/main/segmenteverygrain/checkpoints/seg_model.index
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2025-01-10 18:56:49 ERROR 404: Not Found.

@ThomasMGeo
Copy link
Author

If you need a perm place to store the weights, we could do that at Unidata, feel free to email me at tmartin at ucar dot edu

@zsylvester
Copy link
Owner

That's because I have replaced the Keras 2 model with a Keras 3 model (and didn't update the Google Colab file). You can load the new model weights like this:

!wget "https://raw.githubusercontent.com/zsylvester/segmenteverygrain/main/segmenteverygrain/seg_model.keras" model = load_model("seg_model.keras", custom_objects={'weighted_crossentropy': seg.weighted_crossentropy})

I will update the Colab notebook but it looks like it also has an issue now with 'ipympl'.

Thanks for flagging this!

@ThomasMGeo
Copy link
Author

Thanks! Yeah I was getting some success yesterday, but this was the road block. I will share my draft notebook if I get to it today. Thanks!

@ThomasMGeo
Copy link
Author

@ThomasMGeo
Copy link
Author

ok I got the interactivity to work, bit of a hack, have to re-start the runtime:

https://gist.github.com/ThomasMGeo/04efc96fbceb54cdd0d173644f244ff3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants