matthoffman / degas Goto Github PK
View Code? Open in Web Editor NEWDGA-generated domain detection using deep learning models
License: MIT License
DGA-generated domain detection using deep learning models
License: MIT License
Hi there,
Thx for your degas project, I'm new bee with tensorflow, could you pls. help me about run degas in docker with tensorflow serving. Any reply is a big help.
When I run it in docker using:
docker run -p 8501:8501
--mount type=bind,source=/Users/myUserName/PycharmProjects/degas/models/degas,target=/models/degas
-e MODEL_NAME=degas -t tensorflow/serving:1.12.0
It works fine in my docker. Then I call RESTful API by post :
{
"instances": [
"www.google.com","234kd3ds9fkj3.com"
]
}
to :
http://localhost:8501/v1/models/degas:predict
I got the error response:
{
"error": "Failed to process element: 0 of \'instances\' list. Error: Invalid argument: JSON Value: \"www.google.com\" Type: String is not of expected type: int32"
}
and even I POST this in request, got error response too:
{
"inputs": [
"www.google.com","234kd3ds9fkj3.com"
]
}
Edit:
I did a google more, then I change my input to:
{
"inputs":[
{
"input_image": [0.2]
}
]
}
And I got ERROR message as below:
{
"error": "JSON Value: {\n \"input_image\": [\n 0.2\n ]\n} Type: Object is not of expected type: int32"
}
Edit:
I did a google more, then I change my input to:
{
"inputs":[
{
"input_image": [1,2]
}
]
}
And I got ERROR message as below:
{
"error": "JSON Value: {\n \"input_image\": [\n 1,\n 2\n ]\n} Type: Object is not of expected type: int32"
}
Cloud you please point me out where is wrong with my operate?
THANKS A LOT.
/**************************************************************************/
Already OK now.
{
"instances": [[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,12,21,29,29,21,26,19,12
,17,29,27]
,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,15,2,38,4,3,36,8,9,19,33,0,1,12
,17,29,27]
,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,12,34,37,23,34,34,19,32,12
,17,29,27]]
}
{
"predictions": [
[
4.54876e-11
],
[
0.723077
],
[
2.9277e-18
]
]
}
/**************************************************************************/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.