GantMan / nsfw_model

Keras model of NSFW detector
Other
1.75k stars 273 forks source link

How i load this on Celery worker? #146

Open Victoreisdavid opened 11 months ago

Victoreisdavid commented 11 months 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.