added docker compose to run everything in one go
This commit is contained in:
@@ -265,16 +265,15 @@ func processZipFileExpand(c *Context, model *BaseModel) {
|
||||
return
|
||||
}
|
||||
|
||||
if paths[0] != "training" {
|
||||
if paths[0] == "training" {
|
||||
training = InsertIfNotPresent(training, paths[1])
|
||||
} else if paths[0] != "testing" {
|
||||
} else if paths[0] == "testing" {
|
||||
testing = InsertIfNotPresent(testing, paths[1])
|
||||
}
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(testing, training) {
|
||||
failed("testing and training are diferent")
|
||||
return
|
||||
c.GetLogger().Warn("testing and training differ", "testing", testing, "training", training)
|
||||
}
|
||||
|
||||
base_path := path.Join("savedData", model.Id, "data")
|
||||
@@ -635,7 +634,8 @@ func handleDataUpload(handle *Handle) {
|
||||
|
||||
// TODO work in allowing the model to add new in the pre ready moment
|
||||
if model.Status != READY {
|
||||
return c.JsonBadRequest("Model not in the correct state to add a more classes")
|
||||
c.GetLogger().Error("Model not in the ready status", "status", model.Status)
|
||||
return c.JsonBadRequest("Model not in the correct state to add more classes")
|
||||
}
|
||||
|
||||
// TODO mk this path configurable
|
||||
|
||||
Reference in New Issue
Block a user