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

how to get the trained keras models #2

Open
l35633 opened this issue Jul 30, 2020 · 12 comments
Open

how to get the trained keras models #2

l35633 opened this issue Jul 30, 2020 · 12 comments

Comments

@l35633
Copy link

l35633 commented Jul 30, 2020

hello, respected friend!
thanks a lot for your work.
Now I wonder how can I get the trained keras models,
In the source, the kereas model file is empty.
Thank you very much.
Best Regards

@Walleclipse
Copy link
Owner

I think the folder have trained keras models for eye-prediction (eye_model.h5) and head-prediction (head_model.h5). Which can be used for train_head&eye.py.

@DaddyWesker
Copy link

DaddyWesker commented Feb 10, 2021

Does anyone tried to load models from those files? I've got error Unknown loss function:wing_loss.

Added:
Solution is:
model = load_model('/home/daddywesker/SingularityNet/EyeTracker/Gaze_Tracking/keras_models/head_model.h5', custom_objects={'wing_loss': wing_loss})

and dont forget to define this wing_loss (could be obtained fro train file)

@x1ngzai
Copy link

x1ngzai commented Jul 25, 2021

Does anyone tried to load models from those files? I've got error Unknown loss function:wing_loss.

Added:
Solution is:
model = load_model('/home/daddywesker/SingularityNet/EyeTracker/Gaze_Tracking/keras_models/head_model.h5', custom_objects={'wing_loss': wing_loss})

and dont forget to define this wing_loss (could be obtained fro train file)

Can you send me your downloaded models in keras_models folder?

[email protected]

Thank you

@x1ngzai
Copy link

x1ngzai commented Jul 25, 2021

I think the folder have trained keras models for eye-prediction (eye_model.h5) and head-prediction (head_model.h5). Which can be used for train_head&eye.py.

Can you send me your models in keras_models folder?Those models are no longer available.

[email protected]

Thank you

@Walleclipse
Copy link
Owner

I think the folder have trained keras models for eye-prediction (eye_model.h5) and head-prediction (head_model.h5). Which can be used for train_head&eye.py.

Can you send me your models in keras_models folder?Those models are no longer available.

[email protected]

Thank you

You can download the model checkpoints from the folder of keras_models. In the folder, keras_models/eye_model.h5 for eye-prediction and keras_models/head_model.h5 for head-prediction that used for train_head&eye.py.

@x1ngzai
Copy link

x1ngzai commented Jul 25, 2021

I think the folder have trained keras models for eye-prediction (eye_model.h5) and head-prediction (head_model.h5). Which can be used for train_head&eye.py.

Can you send me your models in keras_models folder?Those models are no longer available.
[email protected]
Thank you

You can download the model checkpoints from the folder of keras_models. In the folder, keras_models/eye_model.h5 for eye-prediction and keras_models/head_model.h5 for head-prediction that used for train_head&eye.py.

Yes.I tried that way.But didn't work.Seems like your lfs's no longer available,so i can't download them(only for those models).

I got this error when i tried "git lfs clone":

batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
error: failed to fetch some objects from 'https://github.com/Walleclipse/Gaze_Tracking.git/info/lfs'

Can you send your backup or something of those to me?

@DaddyWesker
Copy link

Does anyone tried to load models from those files? I've got error Unknown loss function:wing_loss.
Added:
Solution is:
model = load_model('/home/daddywesker/SingularityNet/EyeTracker/Gaze_Tracking/keras_models/head_model.h5', custom_objects={'wing_loss': wing_loss})
and dont forget to define this wing_loss (could be obtained fro train file)

Can you send me your downloaded models in keras_models folder?

[email protected]

Thank you

You can just clone this repository and all models will be in the keras_models folder.

@x1ngzai
Copy link

x1ngzai commented Jul 25, 2021

Does anyone tried to load models from those files? I've got error Unknown loss function:wing_loss.
Added:
Solution is:
model = load_model('/home/daddywesker/SingularityNet/EyeTracker/Gaze_Tracking/keras_models/head_model.h5', custom_objects={'wing_loss': wing_loss})
and dont forget to define this wing_loss (could be obtained fro train file)

Can you send me your downloaded models in keras_models folder?
[email protected]
Thank you

You can just clone this repository and all models will be in the keras_models folder.

Seems like his lfs's no longer available,so i can't download them(only for those models).

Can you send your backup or something of those to me?

@DaddyWesker
Copy link

Does anyone tried to load models from those files? I've got error Unknown loss function:wing_loss.
Added:
Solution is:
model = load_model('/home/daddywesker/SingularityNet/EyeTracker/Gaze_Tracking/keras_models/head_model.h5', custom_objects={'wing_loss': wing_loss})
and dont forget to define this wing_loss (could be obtained fro train file)

Can you send me your downloaded models in keras_models folder?
[email protected]
Thank you

You can just clone this repository and all models will be in the keras_models folder.

Seems like his lfs's no longer available,so i can't download them(only for those models).

Can you send your backup or something of those to me?

If you type git clone https://github.com/Walleclipse/Gaze_Tracking.git what will you get? Can you show error or something?

@x1ngzai
Copy link

x1ngzai commented Jul 25, 2021

Does anyone tried to load models from those files? I've got error Unknown loss function:wing_loss.
Added:
Solution is:
model = load_model('/home/daddywesker/SingularityNet/EyeTracker/Gaze_Tracking/keras_models/head_model.h5', custom_objects={'wing_loss': wing_loss})
and dont forget to define this wing_loss (could be obtained fro train file)

Can you send me your downloaded models in keras_models folder?
[email protected]
Thank you

You can just clone this repository and all models will be in the keras_models folder.

Seems like his lfs's no longer available,so i can't download them(only for those models).
Can you send your backup or something of those to me?

If you type git clone https://github.com/Walleclipse/Gaze_Tracking.git what will you get? Can you show error or something?

if type "git clone".No errors.But got files without lfs files.Those keras models just like txt like this:
version https://git-lfs.github.com/spec/v1
oid sha256:5972c05203f4ff62e97b1e0e32817d0c3f536a96d4c35fb289236f7f49ab759b
size 205495368

If type "git lfs clone".It shows:
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
error: failed to fetch some objects from 'https://github.com/Walleclipse/Gaze_Tracking.git/info/lfs'

Seems like his lfs's no longer available

@DaddyWesker
Copy link

Does anyone tried to load models from those files? I've got error Unknown loss function:wing_loss.
Added:
Solution is:
model = load_model('/home/daddywesker/SingularityNet/EyeTracker/Gaze_Tracking/keras_models/head_model.h5', custom_objects={'wing_loss': wing_loss})
and dont forget to define this wing_loss (could be obtained fro train file)

Can you send me your downloaded models in keras_models folder?
[email protected]
Thank you

You can just clone this repository and all models will be in the keras_models folder.

Seems like his lfs's no longer available,so i can't download them(only for those models).
Can you send your backup or something of those to me?

If you type git clone https://github.com/Walleclipse/Gaze_Tracking.git what will you get? Can you show error or something?

if type "git clone".No errors.But got files without lfs files.Those keras models just like txt like this:
version https://git-lfs.github.com/spec/v1
oid sha256:5972c05203f4ff62e97b1e0e32817d0c3f536a96d4c35fb289236f7f49ab759b
size 205495368

If type "git lfs clone".It shows:
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
error: failed to fetch some objects from 'https://github.com/Walleclipse/Gaze_Tracking.git/info/lfs'

Seems like his lfs's no longer available

Got it. I've uploaded those 3 models here. Try to download them https://drive.google.com/drive/folders/1i_nqm2NeIXkBM94zxWl-dxl8O8boyjr0?usp=sharing

@x1ngzai
Copy link

x1ngzai commented Jul 25, 2021

Does anyone tried to load models from those files? I've got error Unknown loss function:wing_loss.
Added:
Solution is:
model = load_model('/home/daddywesker/SingularityNet/EyeTracker/Gaze_Tracking/keras_models/head_model.h5', custom_objects={'wing_loss': wing_loss})
and dont forget to define this wing_loss (could be obtained fro train file)

Can you send me your downloaded models in keras_models folder?
[email protected]
Thank you

You can just clone this repository and all models will be in the keras_models folder.

Seems like his lfs's no longer available,so i can't download them(only for those models).
Can you send your backup or something of those to me?

If you type git clone https://github.com/Walleclipse/Gaze_Tracking.git what will you get? Can you show error or something?

if type "git clone".No errors.But got files without lfs files.Those keras models just like txt like this:
version https://git-lfs.github.com/spec/v1
oid sha256:5972c05203f4ff62e97b1e0e32817d0c3f536a96d4c35fb289236f7f49ab759b
size 205495368
If type "git lfs clone".It shows:
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
error: failed to fetch some objects from 'https://github.com/Walleclipse/Gaze_Tracking.git/info/lfs'
Seems like his lfs's no longer available

Got it. I've uploaded those 3 models here. Try to download them https://drive.google.com/drive/folders/1i_nqm2NeIXkBM94zxWl-dxl8O8boyjr0?usp=sharing

Thanks a lot! Man

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

4 participants