Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo bot

Generic Telegram bot for image classification using DL4J

This might be useful for someone else. Using the TelegramBots Java API I build a generic bot which you can use for any ComputationGraph you exported from a DeepLearning4J application. The bot simple gets any image it receives and use the model to predict an output. All you have to do is ask for a BotFather  key and set a few system properties: bot.username : Your bot userame bot.token : The bot token you got from  BotFather classifier.labels : The model labels separated by comma classifier.modelpath : The full filesystem path to the model classifier.inputformat : Input image height, width and number of channels separated by comma How it works: First you train your model using DeepLearning4J API and export it . See as example what we did in our Brazilian coin classification post ; Second you get a bot key using  BotFather ; Now you can clone the code from github and build it using mvn clean package (I am considering you already have maven); Finally...