Skip to content

Goapiai/midjourney-state-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

midjourney-state-machine

This repo represents the generation task state machine of Midjourney, as late as November, 2023.

This repo contains three components:

  • A state machine graph build on Plantuml, stored in state_graph.iuml
  • A data model written in Golang, as the data structure of the states of the state machine, see /model/state.go
  • A set of checker functions written in Golang, it's used in GoAPI's Midjourney API for task state checking.

How to use

Run the test program by executing go run main.go.

The program will need you to enter an input. You can input one of the following:

  • action: This will execute the action on the last task.
  • taskId::action: This will execute the action on the specified task.
  • quit: This will exit the program.

After entering an input, the program will process the action and display the results:

  • parent task: taskId, panState, action, actrionTree of parent task.
  • new task/repeat task: taskId and available actions of input action.

You can input any action from the avilable actions list to continue.

Action state graph

See /graph directory

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages