fire/v-sekai.mediapipe-labeler - Générateur d'images
Ceci est unContent Creation, AI Summarizationworkflow d'automatisation du domainecontenant 15 nœuds.Utilise principalement des nœuds comme If, Set, Code, Wait, HttpRequest. Générer des étiquettes de formes hybrides MediaPipe à partir d'images avec V-Sekai et Replicate
- •Peut nécessiter les informations d'identification d'authentification de l'API cible
Nœuds utilisés (15)
Catégorie
{
"meta": {
"instanceId": "e00f79fa-f64f-48e0-aae2-37081dd5270e",
"model_name": "v-sekai.mediapipe-labeler",
"model_type": "image",
"version_id": "f6cda62f5bdf02558ef9f9d23512a296db9927b2b93b6c57295f3e9d6ae696fa",
"model_owner": "fire",
"generated_at": "2025-08-01T14:50:46.345272"
},
"name": "fire/v-sekai.mediapipe-labeler - Image Generator",
"nodes": [
{
"id": "c978c865-1aa7-4ac6-8455-143ec1774522",
"name": "Déclencheur Manuel",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-896,
-176
],
"parameters": {},
"typeVersion": 1
},
{
"id": "73d38bb8-80f8-411c-b658-f54147773094",
"name": "Définir le jeton API",
"type": "n8n-nodes-base.set",
"position": [
-608,
-80
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "api_token",
"name": "api_token",
"type": "string",
"value": "YOUR_REPLICATE_API_TOKEN"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "a1f0c0e2-249c-4546-9af3-dba177060dec",
"name": "Définir les paramètres d'image",
"type": "n8n-nodes-base.set",
"position": [
-288,
-128
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "api_token",
"name": "api_token",
"type": "string",
"value": "={{ $('Set API Token').item.json.api_token }}"
},
{
"id": "test_mode",
"name": "test_mode",
"type": "boolean",
"value": false
},
{
"id": "max_people",
"name": "max_people",
"type": "number",
"value": 100
},
{
"id": "media_path",
"name": "media_path",
"type": "string",
"value": "https://picsum.photos/512/512"
},
{
"id": "export_train",
"name": "export_train",
"type": "boolean",
"value": true
},
{
"id": "aligned_media",
"name": "aligned_media",
"type": "string",
"value": "https://picsum.photos/512/512"
},
{
"id": "frame_sample_rate",
"name": "frame_sample_rate",
"type": "number",
"value": 1
}
]
}
},
"typeVersion": 3.3
},
{
"id": "00a77e3f-63c1-4730-8544-6248e389defa",
"name": "Créer une prédiction d'image",
"type": "n8n-nodes-base.httpRequest",
"position": [
-64,
-128
],
"parameters": {
"url": "https://api.replicate.com/v1/predictions",
"method": "POST",
"options": {
"response": {
"response": {
"neverError": true,
"responseFormat": "json"
}
}
},
"jsonBody": "={\n \"version\": \"fire/v-sekai.mediapipe-labeler:f6cda62f5bdf02558ef9f9d23512a296db9927b2b93b6c57295f3e9d6ae696fa\",\n \"input\": {\n \"test_mode\": {{ $json.test_mode }},\n \"max_people\": {{ $json.max_people }},\n \"media_path\": \"{{ $json.media_path }}\",\n \"export_train\": {{ $json.export_train }},\n \"aligned_media\": \"{{ $json.aligned_media }}\",\n \"frame_sample_rate\": {{ $json.frame_sample_rate }}\n }\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "=Bearer {{ $json.api_token }}"
},
{
"name": "Prefer",
"value": "wait"
}
]
}
},
"typeVersion": 4.1
},
{
"id": "7fc9899b-2ff1-46b8-a7a8-1b016d5ad5ee",
"name": "Attendre 5s",
"type": "n8n-nodes-base.wait",
"position": [
160,
-128
],
"webhookId": "d2c4ca16-0eb2-45b4-8a2d-eec2f99df89c",
"parameters": {
"unit": "seconds",
"amount": 5
},
"typeVersion": 1
},
{
"id": "54d067e2-633e-4ec2-a83f-fd5dbb47a011",
"name": "Vérifier le statut",
"type": "n8n-nodes-base.httpRequest",
"position": [
384,
-128
],
"parameters": {
"url": "=https://api.replicate.com/v1/predictions/{{ $('Create Image Prediction').item.json.id }}",
"options": {
"response": {
"response": {
"neverError": true,
"responseFormat": "json"
}
}
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "=Bearer {{ $('Set API Token').item.json.api_token }}"
}
]
}
},
"typeVersion": 4.1
},
{
"id": "97dd6913-5352-4dbf-af7e-203f165eb52f",
"name": "Est terminé ?",
"type": "n8n-nodes-base.if",
"position": [
528,
-240
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 1,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "loose"
},
"combinator": "and",
"conditions": [
{
"id": "c93d7ba1-0ef9-4087-aa10-389cb2a2c6bd",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "succeeded"
}
]
}
},
"typeVersion": 2
},
{
"id": "9a2dcfb9-a05a-49b7-8ac8-7f6526d195a0",
"name": "A échoué ?",
"type": "n8n-nodes-base.if",
"position": [
848,
-80
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 1,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "loose"
},
"combinator": "and",
"conditions": [
{
"id": "d1bfd044-3a07-4c18-b55f-72d192596139",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "failed"
}
]
}
},
"typeVersion": 2
},
{
"id": "82f97696-0367-4cea-b0af-cfa930c35086",
"name": "Attendre 10s",
"type": "n8n-nodes-base.wait",
"position": [
720,
128
],
"webhookId": "51a05aef-e220-406d-8c2c-e59c82c3e26e",
"parameters": {
"unit": "seconds",
"amount": 10
},
"typeVersion": 1
},
{
"id": "1228b6aa-51af-4556-bc41-c2ca46065ae9",
"name": "Réponse de succès",
"type": "n8n-nodes-base.set",
"position": [
832,
-320
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "success-response",
"name": "response",
"type": "object",
"value": "={{ { success: true, image_url: $json.output, prediction_id: $json.id, status: $json.status, message: 'Image generated successfully' } }}"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "6920eb95-f2a8-4ff7-80ec-cc7d13c1ebc6",
"name": "Réponse d'erreur",
"type": "n8n-nodes-base.set",
"position": [
1344,
144
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "error-response",
"name": "response",
"type": "object",
"value": "={{ { success: false, error: $json.error || 'Image generation failed', prediction_id: $json.id, status: $json.status, message: 'Failed to generate image' } }}"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "ee9329a3-b8ec-4848-8a99-a307c9889f02",
"name": "Afficher le résultat",
"type": "n8n-nodes-base.set",
"position": [
1552,
-144
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "final-result",
"name": "final_result",
"type": "object",
"value": "={{ $json.response }}"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "415c003f-5e20-4abb-8a29-638a3f98a337",
"name": "Journaliser la requête",
"type": "n8n-nodes-base.code",
"position": [
160,
-320
],
"parameters": {
"jsCode": "// Log generation details for monitoring\nconst data = $input.all()[0].json;\n\nconsole.log('fire/v-sekai.mediapipe-labeler Request:', {\n timestamp: new Date().toISOString(),\n prediction_id: data.id,\n model_type: 'image'\n});\n\nreturn $input.all();"
},
"typeVersion": 2
},
{
"id": "07885145-e9e1-44d1-b5e5-367b98f89ab0",
"name": "Note adhésive9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1536,
-304
],
"parameters": {
"color": 4,
"width": 580,
"height": 320,
"content": "=======================================\n V-SEKAI.MEDIAPIPE-LABELER GENERATOR\n=======================================\nFor any questions or support, please contact:\n Yaron@nofluff.online\n\nExplore more tips and tutorials here:\n - YouTube: https://www.youtube.com/@YaronBeen/videos\n - LinkedIn: https://www.linkedin.com/in/yaronbeen/\n======================================="
},
"typeVersion": 1
},
{
"id": "fb59c407-0e49-407f-9f91-71b614a0b870",
"name": "Note adhésive4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1536,
48
],
"parameters": {
"color": 4,
"width": 589,
"height": 1958,
"content": "## 🤖 **FIRE/V-SEKAI.MEDIAPIPE-LABELER - IMAGE GENERATION WORKFLOW**\n\n**🔥 Powered by Replicate API and n8n Automation**\n\n---\n\n### 📝 **Model Overview**\n\n- **Owner**: fire\n- **Model**: v-sekai.mediapipe-labeler\n- **Type**: Image Generation\n- **API Endpoint**: https://api.replicate.com/v1/predictions\n\n**🎯 What This Model Does:**\nMediapipe Blendshape Labeler - Predicts the blend shapes of an image.\n\n---\n\n### 📋 **Parameter Reference**\n\n**🔴 Required Parameters:** media_path\n**🔵 Optional Parameters:** test_mode, max_people, export_train, aligned_media, frame_sample_rate\n\n**📖 Detailed Parameter Guide:**\n- **test_mode** (boolean): Enable test mode for quick verification (Default: False)\n- **max_people** (integer): Maximum number of people to detect (1-100) (Default: 100)\n- **media_path** (string): Input image, video, or training zip file\n- **export_train** (boolean): Export training zip containing json annotations and frame pngs (Default: True)\n- **aligned_media** (string): Optional video that is aligned with the input video's annotations\n- **frame_sample_rate** (integer): Process every nth frame for video input (Default: 1)\n\n---\n\n### 🔧 **Workflow Components Explained**\n\n**🎯 Manual Trigger**\n- Starts the workflow execution\n- Click to begin image generation process\n\n**🔐 Set API Token** \n- Configures your Replicate API authentication\n- Replace 'YOUR_REPLICATE_API_TOKEN' with your actual token\n- Essential for accessing the fire/v-sekai.mediapipe-labeler model\n\n**⚙️ Set Image Parameters**\n- Configures all input parameters for the model\n- Includes both required and optional parameters\n- Pre-filled with sensible defaults for testing\n\n**🚀 Create Image Prediction**\n- Sends the generation request to Replicate API\n- Uses the image parameters you configured\n- Returns a prediction ID for status tracking\n\n**⏳ Wait & Status Checking Loop**\n- Waits 5 seconds then checks prediction status\n- Continues checking until completion or failure\n- Implements intelligent retry logic with 10-second delays\n\n**✅ Success/Error Handling**\n- Routes successful completions to success response\n- Handles failures gracefully with error details\n- Returns structured JSON response with URLs/errors\n\n**📊 Logging & Monitoring**\n- Logs all requests for debugging and monitoring\n- Tracks timestamps and prediction IDs\n- Helps identify issues during development\n\n---\n\n### 🌟 **Key Benefits**\n\n- **🎨 Instant Image Generation**: Transform ideas into images using state-of-the-art AI\n- **🔄 Automated Workflow**: Handles the complete generation pipeline automatically\n- **🛡️ Error Resilience**: Built-in retry logic and comprehensive error handling\n- **📈 Production Ready**: Includes logging, monitoring, and structured responses\n- **🔧 Customizable**: Easy to modify parameters and extend functionality\n- **⚡ Efficient Processing**: Optimized API calls with intelligent status checking\n\n---\n\n### 🚀 **Quick Start Instructions**\n\n1. **🔑 Get Your API Key**\n - Sign up at https://replicate.com\n - Navigate to your account settings\n - Copy your API token\n\n2. **🔧 Configure the Workflow**\n - Replace 'YOUR_REPLICATE_API_TOKEN' with your actual token\n - Adjust parameters in the 'Set Image Parameters' node\n - Customize the prompt or other inputs as needed\n\n3. **▶️ Execute the Workflow**\n - Click the 'Manual Trigger' to start\n - Monitor the execution in the n8n interface\n - Check logs for detailed execution information\n\n4. **📥 Get Your Results**\n - Successful generations return a URL to your image\n - Download or use the generated content as needed\n - Results are available immediately upon completion\n\n---\n\n### 🔍 **Troubleshooting Guide**\n\n**Common Issues:**\n- **Invalid API Token**: Ensure your Replicate token is valid and has sufficient credits\n- **Parameter Validation**: Check that required parameters match expected types\n- **Generation Timeout**: Some images take longer - monitor the logs\n- **Output Format**: Verify the model returns the expected output format\n\n**Best Practices:**\n- Test with default parameters first\n- Monitor your Replicate usage and billing\n- Keep API tokens secure and never commit them to code\n- Use appropriate parameter values for your use case\n\n---\n\n**🔗 Additional Resources:**\n- Model Documentation: https://replicate.com/fire/v-sekai.mediapipe-labeler\n- Replicate API Docs: https://replicate.com/docs\n- n8n Documentation: https://docs.n8n.io\n\n---"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"versionId": "1",
"connections": {
"7fc9899b-2ff1-46b8-a7a8-1b016d5ad5ee": {
"main": [
[
{
"node": "54d067e2-633e-4ec2-a83f-fd5dbb47a011",
"type": "main",
"index": 0
}
]
]
},
"82f97696-0367-4cea-b0af-cfa930c35086": {
"main": [
[
{
"node": "54d067e2-633e-4ec2-a83f-fd5dbb47a011",
"type": "main",
"index": 0
}
]
]
},
"9a2dcfb9-a05a-49b7-8ac8-7f6526d195a0": {
"main": [
[
{
"node": "6920eb95-f2a8-4ff7-80ec-cc7d13c1ebc6",
"type": "main",
"index": 0
}
],
[
{
"node": "82f97696-0367-4cea-b0af-cfa930c35086",
"type": "main",
"index": 0
}
]
]
},
"415c003f-5e20-4abb-8a29-638a3f98a337": {
"main": [
[
{
"node": "7fc9899b-2ff1-46b8-a7a8-1b016d5ad5ee",
"type": "main",
"index": 0
}
]
]
},
"54d067e2-633e-4ec2-a83f-fd5dbb47a011": {
"main": [
[
{
"node": "97dd6913-5352-4dbf-af7e-203f165eb52f",
"type": "main",
"index": 0
}
]
]
},
"97dd6913-5352-4dbf-af7e-203f165eb52f": {
"main": [
[
{
"node": "1228b6aa-51af-4556-bc41-c2ca46065ae9",
"type": "main",
"index": 0
}
],
[
{
"node": "9a2dcfb9-a05a-49b7-8ac8-7f6526d195a0",
"type": "main",
"index": 0
}
]
]
},
"73d38bb8-80f8-411c-b658-f54147773094": {
"main": [
[
{
"node": "a1f0c0e2-249c-4546-9af3-dba177060dec",
"type": "main",
"index": 0
}
]
]
},
"6920eb95-f2a8-4ff7-80ec-cc7d13c1ebc6": {
"main": [
[
{
"node": "ee9329a3-b8ec-4848-8a99-a307c9889f02",
"type": "main",
"index": 0
}
]
]
},
"c978c865-1aa7-4ac6-8455-143ec1774522": {
"main": [
[
{
"node": "73d38bb8-80f8-411c-b658-f54147773094",
"type": "main",
"index": 0
}
]
]
},
"1228b6aa-51af-4556-bc41-c2ca46065ae9": {
"main": [
[
{
"node": "ee9329a3-b8ec-4848-8a99-a307c9889f02",
"type": "main",
"index": 0
}
]
]
},
"a1f0c0e2-249c-4546-9af3-dba177060dec": {
"main": [
[
{
"node": "00a77e3f-63c1-4730-8544-6248e389defa",
"type": "main",
"index": 0
}
]
]
},
"00a77e3f-63c1-4730-8544-6248e389defa": {
"main": [
[
{
"node": "415c003f-5e20-4abb-8a29-638a3f98a337",
"type": "main",
"index": 0
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Intermédiaire - Création de contenu, Résumé IA
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
Yaron Been
@yaron-nofluffBuilding AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos
Partager ce workflow