


PAI x EasyPhoto, bid farewell to April Fool's Day and create a festive atmosphere with AI photos
Event address: https://developer.aliyun.com/topic/aigc_pai/newyear
Tutorial Brief
The application of generative AI technology to produce real/like/beautiful personal photos in batches is very popular. The recently launched EasyPhoto, as an open source SD WebUI plug-in, provides a more flexible and easy-to-use development method. It has received attention and praise from a large number of developers. Users can quickly train the LoRA model by uploading several photos of the same person. , and combined with user-defined template pictures, finally generate true, realistic and beautiful portrait photos.
EasyPhoto is a Webui UI plug-in for generating AI portraits. Based on the StableDiffusion character customization method of Lora ControlNet, it supports low-code operations, customized styles, and built-in rich templates, allowing more developers to flexibly develop their own stylized artistic photo generation. This AIGC creation activity is based on Alibaba Cloud's artificial intelligence platform PAI. EasyPhoto is launched with low code and high efficiency, achieving the rapid generation of beautiful pictures with a festive atmosphere.
Based on this tutorial you can experience:
New users can receive trial resources of artificial intelligence platform PAI worth 10,000 yuan for free
Train a personal LoRA model based on interactive modeling PAI-DSW
Create new holiday AI photos, allowing you to experience the personalized atmosphere of Christmas, New Year and other holidays
Submit your works Redmi Watch3, Xiaomi Band 8, etc. to win exquisite gifts!
Use PAI to quickly start EasyPhoto
1. Preparation
1.1 Get the free trial rights of interactive modeling PAI-DSW
Go to the event page of this "hi 2024! AI New Year Photo Challenge" and receive the interactive modeling PAI-DSW product free trial resource package
- For new users of interactive modeling PAI-DSW, Alibaba Cloud provides 5000CU*H free trial resources, which can be obtained directly on the event page (for trial rules, please refer to Alibaba Cloud Free Trial: https://free. aliyun.com/); or you can purchase the interactive modeling PAI-DSW resource package to participate in the event, purchase link: PAI-DSW 100CU*H resource package, price starts at 59 yuan; if you do not purchase the resource package, PAI-DSW will For billing, please refer to Alibaba Cloud product pricing for billing standards.
1.2 Create PAI-DSW instance
- Go to the artificial intelligence platform PAI console, link: https://pai.console.aliyun.com/
- Open artificial intelligence PAI and create a default workspace. See Provisioning and Creating a Default Workspace.
- In the artificial intelligence platform PAI console, select interactive modeling PAI-DSW
4. Click to create an instance (as shown above)
5. Customize the input instance name, such as "easyphoto"
When choosing an instance model, you can consider using the GPU category ecs.gn6v-c8g1.2xlarge (supports resource package deduction) or ecs.gn7i-c8g1.2xlarge
(Support resource package deduction). If these two models are in stock, you can change the region to try, or choose another paid model (free trial is not supported).
7. Select the image, stable-diffusion-webui-develop:1.0.0-pytorch2.01-gpu-py310-cu117-ubuntu22.04
8. Click "Next"
9. Confirm [Resource Configuration] and [Mirror] as shown in the figure, click Create Instance;
10. Wait about 3-5 minutes, the instance status changes to "Running", and the instance creation is completed;
1.3 Open the EasyPhoto tutorial in PAI-DSW and experience zero-code AI development
- Open the link: AI New Year-Christmas Photo Challenge based on EasyPhoto (WebUI version), click "Open in Alibaba Cloud DSW" in the upper right corner
2. Select the previously created instance and click on the instance name
3. Enter the notebook development interface, click the run button step by step; run 1. Environment installation cells in section (3 defined functions - download code - download model), you can download and install the presets The WebUI with the EasyPhoto plug-in, which is the model it relies on.
4. Run 2. Start the cell of the WebUI section to open the WebUI.
5. Click the generated link to enter WebUI
- Open WebUI, enter the experience link, and run EasyPhoto in WebUI;
2. Start experiencing
You can use this tutorial to generate your own holiday photos/animations. We provide the following functions:
- Photo Inference
- Specify the photo of the person in the picture (Photo2Photo)
- Character photo of specified text (Text2Photo)
- Video Inference
- Character animation of specified text (Text2Video)
- Specify the character animation of the picture (Image2Video)
- Specify the character animation of the video (Video2Video)
Generally speaking, the generation of character portraits/animations is divided into the following two steps:
- Step1: Training the digital clone belonging to the character
- Step2: Image/video generation based on digital clone
Please refer to section 2.2 to generate pictures, and please refer to section 2.3 to generate videos.
2.1 Digital clone training
- Step1: Click the EasyPhoto tab
- Step2: Click Upload Photos to upload your own training pictures (5-20 clear portraits, preferably half-length/frontal)
If you do not have 10 clear personal portrait photos, you can choose the Mona Lisa photo as a test. The download link for Mona Lisa photos is: https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/webui/mona.zip
- Step3: Click Start Training (enter any user id (English) in the pop-up box)
We have built-in two base models in realistic/animation styles for you to choose from. You can also choose your own base model according to your preferences.
⚠️Please note that if there is a front-end disconnection as shown in the picture during the training process, don't worry, you can see the training progress in the notebook background. After training is completed, refresh the front-end page to perform model inference.
- Front-end disconnection (connection timeout, just make sure the background is training):
- Training completion reminder:
- SDWebUI Front End
- notebookbackend
2.2 Photo Inference
You can use Photo Inference for image inference, we support:
- Specified image of person photo (Photo2Photo)
- Character photo of specified text (Text2Photo)
2.2.1 Designated images of character portraits
- Step 1: Switch to the Photo inference tab
- Step 2: Choose a suitable image upload method
- Select from the template (Template Gallery), you need to select a picture in the Gallery
- Single Image Upload
- Batch Image Upload Template(Batch Image Upload)
- Step 3: Select the base model and the LoRA model corresponding to the UserId (you can click the refresh icon to get a list of all UserIDs)
- When using Infer With IPA, you don’t need to train your own digital clone. You can directly upload a picture in the pop-up picture box to generate it.
- Step 4: Related parameters can be set in the Advanced Option tab
- You can turn on background restore, adjust the redrawing range, and redraw the template image to achieve different generation effects.
- Step 5: Click Start Generation to perform model inference and generate your own AI portrait
- After waiting for about 1-2 minutes, the image generation is completed and the image can be downloaded and stored;
- Step6: You can further choose to generate pictures, click Text Options, select a suitable template to add word art effects, and the generated results will appear on the right side of Results.
- Submit the picture to the event page and participate in the awards event;
⚠️ If the following prompt appears, please set the ControlNet number >= 4. Exit from the console and restart WebUI to set up.
- Step1: Select Settings menu
- Step2: Find ControlNet in the left menu bar
- Step3: Set the number of Multi-ControlNet >=4
- Step4: Click to save settings
- Step5: Return to the notebook page, stop and restart SDWebUI
2.2.2 Character portrait of specified text
- Step 1: Switch to the Text2Photo tab
- Step 2: Choose a suitable scene
- Step 3: Modify relevant text description
- Step4: Set the generated image resolution
- Step5: Further select/upload the control image (gesture control OpenPose)
- Step6: Set the base model/User_id and other parameters consistent with the Tushengtu, generate the image, and add the word art effect yourself after the generation is completed.
* You can refer to the usage methods here to further train your own festival scenes and generate diverse portraits~
2.3 Video Inference
You can use Video Inference for video inference, we support:
- Character animation of specified text (Text2Video)
- Character animation of specified image (Image2Video)
- Specify the character animation of the video (Video2Video)
2.3.1 Character animation of specified text
- Step 1: Switch to the Video inference tab
- Step 2: Select a suitable scene and modify the corresponding prompt (the same operation as the character photo of the specified text)
- Step 3: Set the image size, or upload a video for control, and choose the appropriate control method.
- Step 4: Set the base model, user_id and related parameters.
⚠️ We turn on lcm acceleration for video generation by default. You can turn off this option to use more generation steps to generate more detailed video results.
- Step 5: Click Start Generation to generate video
- If there is a front-end error, the background shows that the generation is completed. You can click List Recent Conversion Results to download/view the generated historical video. (No need to refresh)
- Step 6: Click Text Option to add word art effects to the generated video. You can select a frame or apply the WordArt effect to the entire video.
2.3.2 Character animation of specified image
- Step1: Upload a character picture (the generated character photo can be sent here through the button)/Upload the first and last pictures
- Step2: Set the base model, user_id and related parameters. Click Start Generation to generate the video. And use Text Options to add word art.
2.3.3 Specify the character animation of the video
- Step1: Upload a character video
- Step2: Set the base model, user_id and related parameters. Click Start Generation to generate the video. And use Text Options to add word art.
3. Resource cleanup and follow-up
3.1 Cleanup
- After the experiment is completed, you can go to the corresponding product console to stop or delete the instance (both operations are acceptable). Avoid the instance continuing to run, which will cause additional deductions after the free trial limit is exceeded. ;
- The instance will still be considered for use in the future>>Stop; the instance will no longer be used in the future>>Delete, and resource consumption will stop after successful stop.
3.2 Follow-up
During the trial validity period, you can continue to use DSW instances for model training and inference verification.
Attachment:
Welcome to co-build EasyPhoto, Github address: https://github.com/aigc-apps/sd-webui-EasyPhoto
Original link: https://developer.aliyun.com/article/1401917?utm_content=g_1000386818
This article is original content of Alibaba Cloud and may not be reproduced without permission.
The above is the detailed content of PAI x EasyPhoto, bid farewell to April Fool's Day and create a festive atmosphere with AI photos. For more information, please follow other related articles on the PHP Chinese website!
![[Ghibli-style images with AI] Introducing how to create free images with ChatGPT and copyright](https://img.php.cn/upload/article/001/242/473/174707263295098.jpg?x-oss-process=image/resize,p_40)
The latest model GPT-4o released by OpenAI not only can generate text, but also has image generation functions, which has attracted widespread attention. The most eye-catching feature is the generation of "Ghibli-style illustrations". Simply upload the photo to ChatGPT and give simple instructions to generate a dreamy image like a work in Studio Ghibli. This article will explain in detail the actual operation process, the effect experience, as well as the errors and copyright issues that need to be paid attention to. For details of the latest model "o3" released by OpenAI, please click here⬇️ Detailed explanation of OpenAI o3 (ChatGPT o3): Features, pricing system and o4-mini introduction Please click here for the English version of Ghibli-style article⬇️ Create Ji with ChatGPT

As a new communication method, the use and introduction of ChatGPT in local governments is attracting attention. While this trend is progressing in a wide range of areas, some local governments have declined to use ChatGPT. In this article, we will introduce examples of ChatGPT implementation in local governments. We will explore how we are achieving quality and efficiency improvements in local government services through a variety of reform examples, including supporting document creation and dialogue with citizens. Not only local government officials who aim to reduce staff workload and improve convenience for citizens, but also all interested in advanced use cases.

Have you heard of a framework called the "Fukatsu Prompt System"? Language models such as ChatGPT are extremely excellent, but appropriate prompts are essential to maximize their potential. Fukatsu prompts are one of the most popular prompt techniques designed to improve output accuracy. This article explains the principles and characteristics of Fukatsu-style prompts, including specific usage methods and examples. Furthermore, we have introduced other well-known prompt templates and useful techniques for prompt design, so based on these, we will introduce C.

ChatGPT Search: Get the latest information efficiently with an innovative AI search engine! In this article, we will thoroughly explain the new ChatGPT feature "ChatGPT Search," provided by OpenAI. Let's take a closer look at the features, usage, and how this tool can help you improve your information collection efficiency with reliable answers based on real-time web information and intuitive ease of use. ChatGPT Search provides a conversational interactive search experience that answers user questions in a comfortable, hidden environment that hides advertisements

In a modern society with information explosion, it is not easy to create compelling articles. How to use creativity to write articles that attract readers within a limited time and energy requires superb skills and rich experience. At this time, as a revolutionary writing aid, ChatGPT attracted much attention. ChatGPT uses huge data to train language generation models to generate natural, smooth and refined articles. This article will introduce how to effectively use ChatGPT and efficiently create high-quality articles. We will gradually explain the writing process of using ChatGPT, and combine specific cases to elaborate on its advantages and disadvantages, applicable scenarios, and safe use precautions. ChatGPT will be a writer to overcome various obstacles,

An efficient guide to creating charts using AI Visual materials are essential to effectively conveying information, but creating it takes a lot of time and effort. However, the chart creation process is changing dramatically due to the rise of AI technologies such as ChatGPT and DALL-E 3. This article provides detailed explanations on efficient and attractive diagram creation methods using these cutting-edge tools. It covers everything from ideas to completion, and includes a wealth of information useful for creating diagrams, from specific steps, tips, plugins and APIs that can be used, and how to use the image generation AI "DALL-E 3."

Unlock ChatGPT Plus: Fees, Payment Methods and Upgrade Guide ChatGPT, a world-renowned generative AI, has been widely used in daily life and business fields. Although ChatGPT is basically free, the paid version of ChatGPT Plus provides a variety of value-added services, such as plug-ins, image recognition, etc., which significantly improves work efficiency. This article will explain in detail the charging standards, payment methods and upgrade processes of ChatGPT Plus. For details of OpenAI's latest image generation technology "GPT-4o image generation" please click: Detailed explanation of GPT-4o image generation: usage methods, prompt word examples, commercial applications and differences from other AIs Table of contents ChatGPT Plus Fees Ch

How to use ChatGPT to streamline your design work and increase creativity This article will explain in detail how to create a design using ChatGPT. We will introduce examples of using ChatGPT in various design fields, such as ideas, text generation, and web design. We will also introduce points that will help you improve the efficiency and quality of a variety of creative work, such as graphic design, illustration, and logo design. Please take a look at how AI can greatly expand your design possibilities. table of contents ChatGPT: A powerful tool for design creation


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
