Gaze_Tracking icon indicating copy to clipboard operation
Gaze_Tracking copied to clipboard

how to get the trained keras models

Open l35633 opened this issue 5 years ago • 12 comments

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

l35633 avatar Jul 30 '20 04:07 l35633

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.

Walleclipse avatar Aug 11 '20 11:08 Walleclipse

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)

DaddyWesker avatar Feb 10 '21 08:02 DaddyWesker

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 avatar Jul 25 '21 04:07 x1ngzai

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

x1ngzai avatar Jul 25 '21 04:07 x1ngzai

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.

Walleclipse avatar Jul 25 '21 04:07 Walleclipse

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?

x1ngzai avatar Jul 25 '21 05:07 x1ngzai

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.

DaddyWesker avatar Jul 25 '21 05:07 DaddyWesker

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?

x1ngzai avatar Jul 25 '21 05:07 x1ngzai

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?

DaddyWesker avatar Jul 25 '21 05:07 DaddyWesker

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

x1ngzai avatar Jul 25 '21 05:07 x1ngzai

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

DaddyWesker avatar Jul 25 '21 06:07 DaddyWesker

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

x1ngzai avatar Jul 25 '21 06:07 x1ngzai