zelenioncode/e56b28f4-4504-454b-8c04-89a970cce61a

Model for the AiPicture

DreamBooth safetensors model use RealVisXL

This model create picture with RealVisXL3 ( with WebUI api ).


Realism photo with RealVisXl v4.0 ( Realistic Vision with Stable Diffusion XL )
Prediction
zelenioncode/e56b28f4-4504-454b-8c04-89a970cce61a:921db761dc0bacac5dcd2ac10194d2087932e81f8373ac35e4c3a88ce918aee8IDujq7gstb6omtizn6x7xiugfquaStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- age
- 12 et 18 ans
- input
- { "style": [ {"background" : "Plage", "clothes" : "Black Suit", "number_picture" : 1, "img2img" : false}, {"background" : "Plage", "clothes" : "Black Suit", "number_picture" : 4, "img2img" : true}, {"background" : "White", "clothes" : "Blue Shirt", "number_picture" : 4, "img2img" : true}, {"background" : "Alley", "clothes" : "Black Turtleneck", "number_picture" : 4, "img2img" : true} ] }
- gender
- woman
- ethnicity
- Je ne sais pas
- eye_color
- Je ne sais pas
- safetensors
- https://huggingface.co/SG161222/RealVisXL_V4.0/resolve/main/RealVisXL_V4.0.safetensors?download=true
{ "age": "12 et 18 ans", "input": "{\n \"style\": [\n {\"background\" : \"Plage\", \"clothes\" : \"Black Suit\", \"number_picture\" : 1, \"img2img\" : false},\n {\"background\" : \"Plage\", \"clothes\" : \"Black Suit\", \"number_picture\" : 4, \"img2img\" : true},\n {\"background\" : \"White\", \"clothes\" : \"Blue Shirt\", \"number_picture\" : 4, \"img2img\" : true},\n {\"background\" : \"Alley\", \"clothes\" : \"Black Turtleneck\", \"number_picture\" : 4, \"img2img\" : true}\n ]\n}", "gender": "woman", "ethnicity": "Je ne sais pas", "eye_color": "Je ne sais pas", "safetensors": "https://huggingface.co/SG161222/RealVisXL_V4.0/resolve/main/RealVisXL_V4.0.safetensors?download=true" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zelenioncode/e56b28f4-4504-454b-8c04-89a970cce61a using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zelenioncode/e56b28f4-4504-454b-8c04-89a970cce61a:921db761dc0bacac5dcd2ac10194d2087932e81f8373ac35e4c3a88ce918aee8", { input: { age: "12 et 18 ans", input: "{\n \"style\": [\n {\"background\" : \"Plage\", \"clothes\" : \"Black Suit\", \"number_picture\" : 1, \"img2img\" : false},\n {\"background\" : \"Plage\", \"clothes\" : \"Black Suit\", \"number_picture\" : 4, \"img2img\" : true},\n {\"background\" : \"White\", \"clothes\" : \"Blue Shirt\", \"number_picture\" : 4, \"img2img\" : true},\n {\"background\" : \"Alley\", \"clothes\" : \"Black Turtleneck\", \"number_picture\" : 4, \"img2img\" : true}\n ]\n}", gender: "woman", ethnicity: "Je ne sais pas", eye_color: "Je ne sais pas", safetensors: "https://huggingface.co/SG161222/RealVisXL_V4.0/resolve/main/RealVisXL_V4.0.safetensors?download=true" } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run zelenioncode/e56b28f4-4504-454b-8c04-89a970cce61a using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zelenioncode/e56b28f4-4504-454b-8c04-89a970cce61a:921db761dc0bacac5dcd2ac10194d2087932e81f8373ac35e4c3a88ce918aee8", input={ "age": "12 et 18 ans", "input": "{\n \"style\": [\n {\"background\" : \"Plage\", \"clothes\" : \"Black Suit\", \"number_picture\" : 1, \"img2img\" : false},\n {\"background\" : \"Plage\", \"clothes\" : \"Black Suit\", \"number_picture\" : 4, \"img2img\" : true},\n {\"background\" : \"White\", \"clothes\" : \"Blue Shirt\", \"number_picture\" : 4, \"img2img\" : true},\n {\"background\" : \"Alley\", \"clothes\" : \"Black Turtleneck\", \"number_picture\" : 4, \"img2img\" : true}\n ]\n}", "gender": "woman", "ethnicity": "Je ne sais pas", "eye_color": "Je ne sais pas", "safetensors": "https://huggingface.co/SG161222/RealVisXL_V4.0/resolve/main/RealVisXL_V4.0.safetensors?download=true" } ) # To access the file URL: print(output[0].url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
Run zelenioncode/e56b28f4-4504-454b-8c04-89a970cce61a using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "zelenioncode/e56b28f4-4504-454b-8c04-89a970cce61a:921db761dc0bacac5dcd2ac10194d2087932e81f8373ac35e4c3a88ce918aee8", "input": { "age": "12 et 18 ans", "input": "{\\n \\"style\\": [\\n {\\"background\\" : \\"Plage\\", \\"clothes\\" : \\"Black Suit\\", \\"number_picture\\" : 1, \\"img2img\\" : false},\\n {\\"background\\" : \\"Plage\\", \\"clothes\\" : \\"Black Suit\\", \\"number_picture\\" : 4, \\"img2img\\" : true},\\n {\\"background\\" : \\"White\\", \\"clothes\\" : \\"Blue Shirt\\", \\"number_picture\\" : 4, \\"img2img\\" : true},\\n {\\"background\\" : \\"Alley\\", \\"clothes\\" : \\"Black Turtleneck\\", \\"number_picture\\" : 4, \\"img2img\\" : true}\\n ]\\n}", "gender": "woman", "ethnicity": "Je ne sais pas", "eye_color": "Je ne sais pas", "safetensors": "https://huggingface.co/SG161222/RealVisXL_V4.0/resolve/main/RealVisXL_V4.0.safetensors?download=true" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-03-18T10:57:33.978084Z", "created_at": "2024-03-18T10:46:18.272379Z", "data_removed": false, "error": null, "id": "ujq7gstb6omtizn6x7xiugfqua", "input": { "age": "12 et 18 ans", "input": "{\n \"style\": [\n {\"background\" : \"Plage\", \"clothes\" : \"Black Suit\", \"number_picture\" : 1, \"img2img\" : false},\n {\"background\" : \"Plage\", \"clothes\" : \"Black Suit\", \"number_picture\" : 4, \"img2img\" : true},\n {\"background\" : \"White\", \"clothes\" : \"Blue Shirt\", \"number_picture\" : 4, \"img2img\" : true},\n {\"background\" : \"Alley\", \"clothes\" : \"Black Turtleneck\", \"number_picture\" : 4, \"img2img\" : true}\n ]\n}", "gender": "woman", "ethnicity": "Je ne sais pas", "eye_color": "Je ne sais pas", "safetensors": "https://huggingface.co/SG161222/RealVisXL_V4.0/resolve/main/RealVisXL_V4.0.safetensors?download=true" }, "logs": "No module 'xformers'. Proceeding without it.\n*** Error setting up CodeFormer\nTraceback (most recent call last):\nFile \"/src/SD_UI/modules/codeformer_model.py\", line 32, in setup_model\nfrom facelib.utils.face_restoration_helper import FaceRestoreHelper\nFile \"/src/SD_UI/repositories/CodeFormer/facelib/utils/__init__.py\", line 2, in <module>\nfrom .misc import img2tensor, load_file_from_url, download_pretrained_models, scandir\nFile \"/src/SD_UI/repositories/CodeFormer/facelib/utils/misc.py\", line 8, in <module>\nimport gdown\nModuleNotFoundError: No module named 'gdown'\n---\n2024-03-18 10:51:58,746 - ControlNet - \u001b[0;32mINFO\u001b[0m - ControlNet v1.1.313\nControlNet preprocessor location: /src/SD_UI/extensions/sd-webui-controlnet/annotator/downloads\n2024-03-18 10:51:58,855 - ControlNet - \u001b[0;32mINFO\u001b[0m - ControlNet v1.1.313\nCalculating sha256 for /src/SD_UI/models/Stable-diffusion/training.safetensors: \u001b[0;32m*Deforum ControlNet support: enabled*\u001b[0m\nfatal: not a git repository (or any of the parent directories): .git\nfatal: not a git repository (or any of the parent directories): .git\nRunning on local URL: http://127.0.0.1:7860\nTo create a public link, set `share=True` in `launch()`.\nStartup time: 8.9s (import torch: 3.4s, import gradio: 1.0s, setup paths: 1.2s, initialize shared: 0.8s, other imports: 0.5s, load scripts: 0.9s, create ui: 0.7s, gradio launch: 0.1s).\n8d645334746a3ec105d58d9326589fb87e897edcb50ce4ceef485a3194218d80\nLoading weights [8d64533474] from /src/SD_UI/models/Stable-diffusion/training.safetensors\nCreating model from config: /src/SD_UI/repositories/generative-models/configs/inference/sd_xl_base.yaml\nApplying attention optimization: Doggettx... done.\nModel loaded in 10.4s (calculate hash: 5.7s, load weights from disk: 0.8s, create model: 1.8s, apply weights to model: 1.5s, calculate empty prompt: 0.4s).\nSession is created.\n------------------------- TXT2IMG - 1/4 -------------------------\nStart to make the prediction TXT2IMG for 1 pictures ...\nThe 1 last pictures is in progress ...\nPrediction TXT2IMG for 1 pictures is done.\nTOTAL TIME : 10.261 seconds.\nAverage time for 1 picture : 10.261 seconds.\nAverage price for 1 picture : 0.007 $.\nAverage price for 10 picture : 0.074 $.\nAverage price for 100 picture : 0.744 $.\n------------------------- IMG2IMG - 2/4 -------------------------\nThe index_style is not given, we take the first picture of the style.\nStart to make the prediction IMG2IMG for 4 pictures ...\nPictures 1-2-3-4 is in progress ...\nPrediction IMG2IMG for 4 pictures is done.\nTOTAL TIME : 103.43 seconds.\nAverage time for 1 picture : 25.857 seconds.\nAverage price for 1 picture : 0.019 $.\nAverage price for 10 picture : 0.187 $.\nAverage price for 100 picture : 1.875 $.\n------------------------- IMG2IMG - 3/4 -------------------------\nThe index_style is not given, we take the first picture of the style.\nStart to make the prediction IMG2IMG for 4 pictures ...\nPictures 1-2-3-4 is in progress ...\nPrediction IMG2IMG for 4 pictures is done.\nTOTAL TIME : 102.145 seconds.\nAverage time for 1 picture : 25.536 seconds.\nAverage price for 1 picture : 0.019 $.\nAverage price for 10 picture : 0.185 $.\nAverage price for 100 picture : 1.851 $.\n------------------------- IMG2IMG - 4/4 -------------------------\nThe index_style is not given, we take the first picture of the style.\nStart to make the prediction IMG2IMG for 4 pictures ...\nPictures 1-2-3-4 is in progress ...\nPrediction IMG2IMG for 4 pictures is done.\nTOTAL TIME : 102.959 seconds.\nAverage time for 1 picture : 25.74 seconds.\nAverage price for 1 picture : 0.019 $.\nAverage price for 10 picture : 0.187 $.\nAverage price for 100 picture : 1.866 $.", "metrics": { "predict_time": 342.922516, "total_time": 675.705705 }, "output": [ "https://replicate.delivery/pbxt/go0KbJbpDAZmJlt1rY4eY8521G6VDpXdHhX9sIUxIe3aAdhSA/picture_woman_Plage_Black%20Suit_1.png", "https://replicate.delivery/pbxt/I5gSer2WrlwuE68jVBs6xd9p328Ibp1Lgu5CJepQN1waAdhSA/picture_woman_Plage_Black%20Suit_2.png", "https://replicate.delivery/pbxt/5JcgoSxLmjoyHBS3gJtsdJqD0gHbKVfSnnee44ZGXx21A6ClA/picture_woman_Plage_Black%20Suit_3.png", "https://replicate.delivery/pbxt/BmcNJYWyeVRNMq2feElBRluutdSFikhOeA4G9lYsoWfbDoLUC/picture_woman_Plage_Black%20Suit_4.png", "https://replicate.delivery/pbxt/rjreOPpJaiS8R6fgdVaOtxP07Aq9NyEWmTCLORUq40DbAdhSA/picture_woman_Plage_Black%20Suit_5.png", "https://replicate.delivery/pbxt/QaCc3Mb8CQq3J9iO8ZnL0wMYqbAxqheLlWlNzsIiM1tNguQJA/picture_woman_White_Blue%20Shirt_6.png", "https://replicate.delivery/pbxt/4vcm1fDcgYVfDEvVZYtURhToCcZIIerWfMCfy28xYQNmDoLUC/picture_woman_White_Blue%20Shirt_7.png", "https://replicate.delivery/pbxt/bLNte5eubPg3EkE2H6j8g2ClGBzLq3O8eCfN7vD6eWfMHQXoE/picture_woman_White_Blue%20Shirt_8.png", "https://replicate.delivery/pbxt/fshPGvxG6tQoRqKpXAZmvxlArGhOQFqG6IOeEtnTfDU4A6ClA/picture_woman_White_Blue%20Shirt_9.png", "https://replicate.delivery/pbxt/FnUshkLv56JkNRiCQh6eOO2W8OvDWXPFP1ZkYZeZeak5A6ClA/picture_woman_Alley_Black%20Turtleneck_10.png", "https://replicate.delivery/pbxt/SLnxiNo5W267IJeO7eXJayiUgteYCaXSkFHZ9FHkYti7A6ClA/picture_woman_Alley_Black%20Turtleneck_11.png", "https://replicate.delivery/pbxt/jBfKJbAu31zuAa6bvx9jgqSGKylLppCz0B3Bk6vRFDuOguQJA/picture_woman_Alley_Black%20Turtleneck_12.png", "https://replicate.delivery/pbxt/vKWnVc4cT76BHdlNVyObde9jx27sHmy6E2aizIX5Tg7OguQJA/picture_woman_Alley_Black%20Turtleneck_13.png" ], "started_at": "2024-03-18T10:51:51.055568Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ujq7gstb6omtizn6x7xiugfqua", "cancel": "https://api.replicate.com/v1/predictions/ujq7gstb6omtizn6x7xiugfqua/cancel" }, "version": "921db761dc0bacac5dcd2ac10194d2087932e81f8373ac35e4c3a88ce918aee8" }
Generated inNo module 'xformers'. Proceeding without it. *** Error setting up CodeFormer Traceback (most recent call last): File "/src/SD_UI/modules/codeformer_model.py", line 32, in setup_model from facelib.utils.face_restoration_helper import FaceRestoreHelper File "/src/SD_UI/repositories/CodeFormer/facelib/utils/__init__.py", line 2, in <module> from .misc import img2tensor, load_file_from_url, download_pretrained_models, scandir File "/src/SD_UI/repositories/CodeFormer/facelib/utils/misc.py", line 8, in <module> import gdown ModuleNotFoundError: No module named 'gdown' --- 2024-03-18 10:51:58,746 - ControlNet - INFO - ControlNet v1.1.313 ControlNet preprocessor location: /src/SD_UI/extensions/sd-webui-controlnet/annotator/downloads 2024-03-18 10:51:58,855 - ControlNet - INFO - ControlNet v1.1.313 Calculating sha256 for /src/SD_UI/models/Stable-diffusion/training.safetensors: *Deforum ControlNet support: enabled* fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. Startup time: 8.9s (import torch: 3.4s, import gradio: 1.0s, setup paths: 1.2s, initialize shared: 0.8s, other imports: 0.5s, load scripts: 0.9s, create ui: 0.7s, gradio launch: 0.1s). 8d645334746a3ec105d58d9326589fb87e897edcb50ce4ceef485a3194218d80 Loading weights [8d64533474] from /src/SD_UI/models/Stable-diffusion/training.safetensors Creating model from config: /src/SD_UI/repositories/generative-models/configs/inference/sd_xl_base.yaml Applying attention optimization: Doggettx... done. Model loaded in 10.4s (calculate hash: 5.7s, load weights from disk: 0.8s, create model: 1.8s, apply weights to model: 1.5s, calculate empty prompt: 0.4s). Session is created. ------------------------- TXT2IMG - 1/4 ------------------------- Start to make the prediction TXT2IMG for 1 pictures ... The 1 last pictures is in progress ... Prediction TXT2IMG for 1 pictures is done. TOTAL TIME : 10.261 seconds. Average time for 1 picture : 10.261 seconds. Average price for 1 picture : 0.007 $. Average price for 10 picture : 0.074 $. Average price for 100 picture : 0.744 $. ------------------------- IMG2IMG - 2/4 ------------------------- The index_style is not given, we take the first picture of the style. Start to make the prediction IMG2IMG for 4 pictures ... Pictures 1-2-3-4 is in progress ... Prediction IMG2IMG for 4 pictures is done. TOTAL TIME : 103.43 seconds. Average time for 1 picture : 25.857 seconds. Average price for 1 picture : 0.019 $. Average price for 10 picture : 0.187 $. Average price for 100 picture : 1.875 $. ------------------------- IMG2IMG - 3/4 ------------------------- The index_style is not given, we take the first picture of the style. Start to make the prediction IMG2IMG for 4 pictures ... Pictures 1-2-3-4 is in progress ... Prediction IMG2IMG for 4 pictures is done. TOTAL TIME : 102.145 seconds. Average time for 1 picture : 25.536 seconds. Average price for 1 picture : 0.019 $. Average price for 10 picture : 0.185 $. Average price for 100 picture : 1.851 $. ------------------------- IMG2IMG - 4/4 ------------------------- The index_style is not given, we take the first picture of the style. Start to make the prediction IMG2IMG for 4 pictures ... Pictures 1-2-3-4 is in progress ... Prediction IMG2IMG for 4 pictures is done. TOTAL TIME : 102.959 seconds. Average time for 1 picture : 25.74 seconds. Average price for 1 picture : 0.019 $. Average price for 10 picture : 0.187 $. Average price for 100 picture : 1.866 $.
Want to make some of these yourself?
Run this model