diff --git a/lora-assets/manifest.json b/lora-assets/manifest.json index f33d71c4..ff772646 100644 --- a/lora-assets/manifest.json +++ b/lora-assets/manifest.json @@ -1,4 +1,5 @@ { + "$schema": "./manifestLoraSchema.json", "assetsLocation": "./lora-assets/", "animationsDirectory": "/animations/", "backgroundGrayscale": 0, @@ -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" }, { diff --git a/lora-assets/manifestLoraSchema.json b/lora-assets/manifestLoraSchema.json new file mode 100644 index 00000000..5f9dce67 --- /dev/null +++ b/lora-assets/manifestLoraSchema.json @@ -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" + ] + } \ No newline at end of file