D
D
Daniil Kalinin2020-12-18 23:37:42
CUDA
Daniil Kalinin, 2020-12-18 23:37:42

How to optimize a neural network bot for multiple users?

I am writing my first bot (on aiogram), in which I have embedded a style-transfer neural network on pytorch. My problem is this: the neural network works for some time (40-50 seconds), and then sends a response. If a user writes to the bot at this time, he, of course, will ignore it. Advise how best to organize the reception of photos from users (maybe their id should be added to the queue and retrieved from there, or something else). Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question