Make replacement faces with AI tools and use Button Coze to create a one-click face swap smart body

Recently,buttonThere's been a major update that introduces a newAI ApplicationsMorphology, some of the original image streaming features have been significantly updated and changed, the old tutorials are no longer applicable, and the new features have become simpler and more powerful.

A friend asked about the originalPortraitAgentHow should I make it?

Today with the revamped function to recreate a replacement face portrait portrait smart body, for those who need to update and learn.

See the effect first

Left: User uploads face image

Middle picture: template base picture

Right: New personal portrait effect generated by user uploaded image + template image.

275d753aj00sp2v2z001od000u000e5m

Next, let’s learn togetherHow to make a photoshopped smart body that replaces a human face with a button.

Workflow for creating replacement faces

Open the homepage of Button's official website and click [Workspace] on the left menu.

52f05acaj00sp2v2z001ud000u000hmm

Enter the workspace interface and click [Resources] -> [Workflow] in the upper right corner.

9a17ac2bj00sp2v2z0019d000u000hmm

Enter the Create Workflow screen, enter the workflow name, workflow description and click [Confirm].

Workflow name: portrait_replace

Workflow description: the user inputs a description of the content of the text and the text to be added to the image, and the image flow is called to help the user generate an illustration with text in one click.

fecf09d6j00sp2v2z000td000p300osm

Enter the workflow interface and click [Add Node].

10b21609j00sp2v2z0011d000u000hmm

The node selection screen pops up, where Pothead first clicks on [Plugin].

948b3b11j00sp2v2z0016d000u000hmm

Enter the add-in interface, search for "Face Swap", select [Smart Face Swap], expand the small corner label and click [Add].

40ba8a90j00sp2v2z0011d000u000jrm

After adding successfully, click [x] in the upper right corner to close the plug-in window.

After returning to the workflow interface, connect the 3 nodes in the order of the screenshot below by putting [Start] - [Smart Swap_Face] - [End].

76c6883cj00sp2v2z0017d000u000hmm

Next, let's configure specific parameters node by node.
[Begins]

Double-click the [Start] node to enter the Start node configuration interface, configure the variable name "input_prompt", variable type "Image", check the required items.

988d46d1j00sp2v2z000kd000gg00bxm

[Intelligent Face Swap (swap_face)]

Double-click the node of plug-in swap_face, enter the interface of swap_face editing, select the parameter value of swap_face to refer to "start-face_image", and select the parameter value of swap_face to refer to "start-template_image". ".

00cd06c2j00sp2v2y000wd000h000k9m

[Ends]

Double-click the [End] node to enter the end node configuration interface, the configuration parameter name is "output", and the value of the parameter is drawing board-data.

c35f48c7j00sp2v2z0018d000qf00i4m

[Trial run + release]

Here, we have completed the node configuration, click [test run].

4be598c0j00sp2v2z001cd000u000hmm

After clicking Trial Run, the Trial Run window will pop up, upload the face swap photo and template base image, and click [Trial Run].

2af70a9bj00sp2v2z001ad000hc011xm

After running successfully, click [Publish] in the upper right corner.

9ac8175ej00sp2v2z001id000u000hmm

Publish successfully, automatically jump to the repository interface and see that there is already an additional workflow for portrait_replace.

7dc99dcfj00sp2v2z000hd000u0005rm

Creating Face Replacement Intelligentsia

Go back to the homepage of Button's official website, click on the [+ icon] on the left menu, and then click on [Create] below the Create Smart Body card after the creation window pops up.

1dc88f73j00sp2v2z001od000u000hmm

The Create Smartbody window pops up, enter the Smartbody name, Smartbody function description, upload the icon, and then click [Confirm].

Intelligent Body Name: Face Replacement Intelligent Body

Intelligent body function introduction: upload face image and template character base image, one click to replace the face.

Icons: custom upload or AI generated.

6a32b5a6j00sp2v2z001id000lp00rrm

Enter the Smartbody Orchestration interface for persona and reply logic, skills, preview and debugging, and publishing operations.

cf2268f9j00sp2v2z000td000u000hmm

Character setting and response logic

0def214fj00sp2v2z002hd000ms00mlm

# Role

You are a professional portrait generation tool that guides users to upload face photos and template basemaps, and then generates realistic portrait images by calling the workflow portrait_replace for intelligent face replacement.

## Skills

### Skill 1: Guide users to upload photos

1. Prompt the user to upload a clear photo of their face and a template base image.

### Skill 2: Perform Smart Face Swap

1. When a user uploads a photo, the workflow portrait_replace is called to perform an intelligent face replacement operation.

2. Generate a portrait image of the user.

### Skill 3: The dialog window displays the generated picture directly

1. After generating a portrait picture, the picture is displayed directly in the dialog window, not the picture link.

## Restrictions:

- Focuses only on handling operations related to face photos and generating portrait portrait images.

- The output must be organized in the given format and must not deviate from the framework requirements.

Model setup

c7196c6cj00sp2v2z002bd000og00ujm

00453d8aj00sp2v2z0016d000mc00tmm

Workflow

Click the [+ icon] to the right of the workflow.

85aa8c51j00sp2v2z000qd000np00glm

Enter the workflow interface, find the workflow portrait_replace that you just created, and click [Add].

bbff99e8j00sp2v2z001kd000u000k3m

Go back to the Work Pop item and see that it has been added successfully.

af953bbfj00sp2v2y000cd000m90094m

preamble (of speeches, articles etc)

Click to expand the opening message text, and after entering the appropriate opening message content, see the preview update in sync with the debug window.

3e2d1abcj00sp2v2z001id000u000mxm

The opening text is as follows:

Hi, I can create a portrait for you! Please upload a photo of your face and the base image of the portrait template to try it out.

Shortcuts

Click [+] to the right of the Quick Command line item to add a command.

a30a04a1j00sp2v2z000qd000mm00drm

Enter the interface for creating shortcut commands, enter the button name, command name, command description, and check "Use plug-in, workflow or image flow directly" for the tool location.

450fb7d8j00sp2v2z001qd000u000xqm

After checking the tool, enter the tool selection interface and click [Workflow].

618fddfcj00sp2v2z001gd000u000k7m

Enter the workflow interface and click [Add].

b25c15c1j00sp2v2z001fd000u000k0m

After selecting the image stream, the component information for the shortcut command is automatically created based on the image stream parameters.

3730911dj00sp2v2z0017d000u000k6m

We also need to optimize the component parameters, adjusted parameters are as follows:

Component name: Change the English variable name to Chinese, it looks more intuitive.

Component type: select upload files and only support uploading images.

b9ef0d34j00sp2v2z001ad000u000k4m

Scroll down the interface to the instruction content input box, click "Input Component" on the right side, and select Upload Face Changer and Upload Template Base.

253762e7j00sp2v2z0016d000u000k7m

After successful selection, the command content input box is automatically populated with two variables.

After the content of the shortcut command is filled in, click [OK].

e2913895j00sp2v2z0015d000u000k7m

Preview and debug

In the Preview & Debug window, upload the face image and the base image of the portrait photo template, and click the [Send icon].

fdde757ej00sp2v2z001qd000or011dm

After the image is sent successfully, AI calls the image stream to generate an exclusive portrait effect image.

3f151773j00sp2v2z001rd000oc00x4m

release

Click [Publish] in the upper right corner.

6d57ee89j00sp2v2y000cd000o9005sm

Enter the publishing interface, publish the platform check the button store, click the upper right corner [Publish].

222c02f4j00sp2v2z000xd000u000hmm

Posting has been submitted and is under review, click [Finish].

809a1016j00sp2v2z000ed000u000bbm

After review, you will see the [Store icon] in the upper right corner of the smart body editing page, click on it to experience the effect.

02774464j00sp2v2z001jd000u000hmm

Go to the Face Replacement Smart Body page, enter the sample prompt words and click [Send Icon].

a710cd94j00sp2v2z000vd000u000hmm

The result is obtained as shown below:

d8864d74j00sp2v2z001td000u000yrm

By this point, we've completed the Face Replacement Smart Body Creation with buttons together, have you learned it yet?

statement:The content of the source of public various media platforms, if the inclusion of the content violates your rights and interests, please contact the mailbox, this site will be the first time to deal with.
Encyclopedia

What is an AI Intelligent Body? Figuring Out the Difference Between AI Intelligentsia, Workflow Automation, and PRA

2024-12-25 10:45:17

Encyclopedia

What are the dissertation checking and lowering tools?8 ai dissertation checking and lowering tools recommended

2024-12-27 9:21:36

Zenium
Search