Skip to content

Commit

Permalink
Merge pull request #165 from Benjythebee/types/json-lora-asset
Browse files Browse the repository at this point in the history
lgtm! 👍
  • Loading branch information
memelotsqui authored Oct 16, 2024
2 parents 23e0d99 + b1aee75 commit 40ace5b
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/lora-assets/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "./manifestLoraSchema.json",
"assetsLocation": "./lora-assets/",
"animationsDirectory": "/animations/",
"backgroundGrayscale": 0,
Expand All @@ -14,7 +15,7 @@
"lookAtCamera":false,
"expression":"happy",
"cameraPosition":[-0.5,-0.2,1],
"cameraFrame":"fullShot",
"cameraFrame":"fullshot",
"description":"a person slowly walking full shot"
},
{
Expand Down
94 changes: 94 additions & 0 deletions public/lora-assets/manifestLoraSchema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"assetsLocation": {
"type": "string"
},
"animationsDirectory": {
"type": "string"
},
"backgroundGrayscale": {
"type": "integer"
},
"backgroundDescription": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"topFrameOffsetPixels": {
"type": "integer"
},
"bottomFrameOffsetPixels": {
"type": "integer"
},
"dataCollection": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"animationPath": {
"type": "string"
},
"animationFrame": {
"type": "integer"
},
"lookAtCamera": {
"type": "boolean"
},
"expression": {
"type": "string"
},
"cameraPosition": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"cameraFrame": {
"type": "string",
"enum": ["fullshot", "closeup", "mediumshot", "cowboyshot","mediumcloseup","mediumcloseupshot","closeupshot"]
},
"description": {
"type": "string"
}
},
"required": [
"animationPath",
"animationFrame",
"lookAtCamera",
"expression",
"cameraPosition",
"cameraFrame",
"description"
]
}

]
}
},
"required": [
"assetsLocation",
"animationsDirectory",
"backgroundGrayscale",
"backgroundDescription",
"width",
"height",
"topFrameOffsetPixels",
"bottomFrameOffsetPixels",
"dataCollection"
]
}

0 comments on commit 40ace5b

Please sign in to comment.