Skip to content

Commit

Permalink
fix AIto3d
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-shawn committed Jan 3, 2025
1 parent 4e19f93 commit 3550634
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
16 changes: 1 addition & 15 deletions controllers/AITo3DController.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,7 @@ func QueryAITo3DTaskModelURL(reqBody common.ReqQueryAITo3DTaskModelURL, token st
return result, nil
}


func RefineModel(reqBody common.ReqRefineModel, token string) (json.RawMessage, error) {
url:=SkyNetControllerURL+"/deepLearn/refineModel"
reqJson, err := json.Marshal(reqBody)
if err != nil {
return nil, err
}
result, err := util.SendHttpPost(url, reqJson, token)
if err != nil {
return nil, err
}
return result, nil
}

////The value for animation can only be preset:walk, preset:run, or preset:dive.
////The value for animation can only be preset:idle,preset:walk,preset:climb,preset:jump,preset:run,preset:slash,preset:shoot,preset:hurt,preset:fall,preset:turn.
func Animate(reqBody common.ReqAnimateModel, token string) (json.RawMessage, error) {
url:=SkyNetControllerURL+"/deepLearn/animateTrip3d"
reqJson, err := json.Marshal(reqBody)
Expand Down
10 changes: 0 additions & 10 deletions controllers/AITo3DController_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,6 @@ func TestQueryAITo3DTaskModelURL(t *testing.T) {
fmt.Println(111111, string(result), err)
}

func TestRefineModel(t *testing.T) {
token := GetToken()
reqBody := common.ReqRefineModel{
JobID: "21559616267152752126804958740584316039613520634800696977564855889808589769897",
TaskID: "b98f8c0d-5b02-4195-a750-de5fc7c1f7bf",
}
result, err := RefineModel(reqBody,token)
fmt.Println(111111, string(result), err)
}

func TestAnimate(t *testing.T) {
token := GetToken()
reqBody := common.ReqAnimateModel{
Expand Down

0 comments on commit 3550634

Please sign in to comment.