GantMan / nsfw_model

Keras model of NSFW detector
Other
1.8k stars 279 forks source link

How i load this on Celery worker? #146

Open Victoreisdavid opened 1 year ago

Victoreisdavid commented 1 year ago

Hi. I'm trying to load the model on celery worker, but i get the error Unexpected result of 'predict_function' (Empty batch_outputs). Please use 'Model.compile(..., run_eagerly=True)', or 'tf.config.run_functions_eagerly(True)' for more information of where went wrong, or file a issue/bug to 'tf.keras'., how i can use the model on Celery worker? i'm begginer at Python and Keras.