Walleclipse / Gaze_Tracking

Gaze-Tracking based on head orientation and eye orientation
67 stars 23 forks source link

how to get the trained keras models #2

Open l35633 opened 3 years ago

l35633 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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?

panicaha@gmail.com

Thank you

x1ngzai commented 2 years ago

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.

panicaha@gmail.com

Thank you

Walleclipse commented 2 years ago

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.

panicaha@gmail.com

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 commented 2 years ago

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. panicaha@gmail.com 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 commented 2 years ago

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?

panicaha@gmail.com

Thank you

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

x1ngzai commented 2 years ago

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? panicaha@gmail.com 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 commented 2 years ago

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? panicaha@gmail.com 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 commented 2 years ago

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? panicaha@gmail.com 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 commented 2 years ago

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? panicaha@gmail.com 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 commented 2 years ago

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? panicaha@gmail.com 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