Skip to content

iLearn-Lab/TailorRec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation



๐ŸŽจ TailorRec: From User Behavior to Creative Content


๐Ÿšจ Current Personalized Content Generation Challenges:

  • โŒ Generic Outputs - Most AI content generators produce one-size-fits-all content without understanding individual preferences
  • โŒ Single Modality - Tools typically generate only text OR images OR videos
  • โŒ Platform Isolation - No integration with real social platforms for authentic user understanding

๐Ÿ’ก Personalized-AIGC Solution:

๐ŸŽฏ Recommendation Engine, Multimodal Analyzer, Profile Generator, and Content Creator All-in-One! We're building a future where AI truly understands YOU. ๐Ÿ’ก Simply connect your social accounts. Personalized-AIGC autonomously analyzes your behavior, builds your preference profile, and generates tailor-made contentโ€”videos, posts, and more! ๐Ÿš€


๐Ÿ“‘ Table of Contents


๐Ÿ’ก Key Features


๐Ÿ“Š Behavior2Profile

Profiling Badge

Automatic Preference Learning

Transform raw user behavior data from social platforms into comprehensive preference profiles through multimodal LLM analysis of videos, images, and text.

๐ŸŽฌ Profile2Video

Video Badge

AI Video Production Studio

Generate personalized video content including crosstalk, talk shows, music videos, meme edits, and news summaries tailored to user interests.

๐Ÿ“ฑ Profile2Post

Social Badge

Publication-Ready Posts

Create engaging social media posts with AI-generated copy, images, and platform-specific links for Bilibili, Xiaohongshu, Zhihu, Douyin, and Weibo.

๐Ÿ”ฎ SSL-RecSys

RecSys Badge

30+ SOTA Models

Leverage self-supervised learning recommendation with LightGCN, SGL, BERT4Rec, and more for precise user preference prediction.



๐ŸŽฏ End-to-End Personalized Content Pipeline

The Challenges We Solve:

Challenge Traditional Approach Our Solution
๐ŸŽญ User Understanding Manual input of preferences Automatic behavior analysis from social platforms
๐Ÿง  Content Ideation Generic prompts Profile-driven creative idea generation
๐ŸŽฌ Video Production Single clips, no consistency Multi-agent studio with 7 video types
๐Ÿ“ฑ Social Posts Text-only generation Rich multimedia with platform links
๐Ÿ”„ Real-time Adaptation Static profiles Dynamic profiling from live data

๐Ÿ”ฅ Why Personalized-AIGC?

๐Ÿง  Zero Manual Input ๐ŸŽฌ Multi-Modal Output ๐ŸŒ Platform Native ๐Ÿค– SOTA RecSys โšก Real-Time
Automatic Profiling Video + Text + Image Bilibili, Xiaohongshu, Hupu 30+ SSL Models Live Data Analysis
No need to describe yourselfโ€”we learn from your actual behavior across platforms Generate complete video productions, social media posts with images, and cross-platform content Native integration with major Chinese social platforms for authentic user data Powered by SSLRec (WSDM'24) with LightGCN, BERT4Rec, SGL, and more Continuously update profiles with fresh user interaction data

๐Ÿ—๏ธ Architecture

๐Ÿ“Š System Overview

Personalized-AIGC is a multi-agent content generation framework that transforms user behavioral data into personalized creative content. Our system seamlessly bridges recommendation systems with AIGC, allowing AI to truly understand and create for individual users.

๐Ÿ•ท๏ธ DATA COLLECTION LAYER
๐Ÿ“บ Bilibili Spider โ€ข ๐Ÿ“• Xiaohongshu Spider โ€ข ๐Ÿ€ Hupu Spider โ€ข ๐ŸŽฌ Douban Spider
๐Ÿ”ฎ RECOMMENDATION ENGINE (SSLRec)
LightGCN โ€ข SGL โ€ข SimGCL โ€ข BERT4Rec โ€ข DuoRec โ€ข 30+ Models
๐ŸŽฅ VIDEO ANALYST
Frame Extraction โ€ข Scene Understanding โ€ข Content Summarization
๐Ÿ–ผ๏ธ IMAGE ANALYST
Visual Recognition โ€ข Style Analysis โ€ข Object Detection
๐Ÿง  PROFILE GENERATION
Item Profiles โ€ข User Profiles โ€ข Preference Ranking โ€ข Creative Ideas
๐ŸŽฌ VIDEO AGENT
Cross Talk โ€ข Talk Show โ€ข MAD/SVC โ€ข Rhythm Edit โ€ข News โ€ข Commentary
๐Ÿ“ฑ TEXT-IMAGE GENERATOR
AI Copywriting โ€ข Image Generation โ€ข Platform Links โ€ข HTML Posts
โœจ OUTPUT LAYER
๐ŸŽฌ Personalized Videos โ€ข ๐Ÿ“ฑ Social Media Posts โ€ข ๐Ÿ–ผ๏ธ Generated Images โ€ข ๐Ÿ“Š User Insights

๐ŸŽฌ VideoAgent: Multi-Agent Video Production

๐ŸŽญ Cross Talk

Convert audio into Chinese crosstalk duo performances

๐ŸŽค Talk Show

Transform content into stand-up format

๐ŸŽต MAD/SVC

Voice conversion with custom lyrics

๐Ÿ”Š MAD/TTS

Character dialogue adaptation

๐ŸŽฌ Rhythm

Automatic beat-synced cuts

๐Ÿ“ฐ News

Event summarization videos

๐Ÿ“– Commentary

Book to video narration

Built with cutting-edge tools:

๐Ÿ—ฃ๏ธ CosyVoice     โ†’  Voice Cloning & TTS
๐ŸŸ Fish-Speech   โ†’  Multilingual Speech Synthesis
๐Ÿ”— ImageBind     โ†’  Multimodal Embedding
๐ŸŽง Demucs        โ†’  Audio Source Separation
๐ŸŽผ Whisper       โ†’  Speech Recognition

๐Ÿš€ Quick Start

๐Ÿ–ฅ๏ธ Environment

OS: Linux, Windows
Python: 3.10+
CUDA: 12.1+ (recommended for GPU acceleration)

๐Ÿ“ฅ Clone and Install

git clone https://github.com/your-username/Personalized-AIGC.git
cd Personalized-AIGC

# Create virtual environment
python -m venv paigc_env
source paigc_env/bin/activate  # Linux/Mac
# or
.\paigc_env\Scripts\activate   # Windows

# Install dependencies
pip install -e .

โš™๏ธ Configuration

Create a .env file in the project root:

# Dataset: bilibili, redbook, hupu, douban
DATASET=bilibili

# LLM Configuration
CHAT_API_KEY=your_openai_api_key
CHAT_BASE_URL=https://api.openai.com/v1
CHAT_MODEL=gpt-4o

# Image Generation (Optional)
IMAGE_API_KEY=your_image_api_key
IMAGE_BASE_URL=https://generativelanguage.googleapis.com/v1beta
IMAGE_MODEL=gemini-2.0-flash

๐ŸŽฏ Usage

Run the complete pipeline with a single command:

python main.py

This will:

  1. ๐Ÿ”ฎ Run SSL recommendation model
  2. ๐Ÿง  Analyze user content (video, image, text)
  3. ๐Ÿ“Š Generate user profiles
  4. โœจ Create personalized content

๐Ÿ“ฆ Modules

1๏ธโƒฃ Data Collection

from tools.bilibili_realtime import BilibiliRealTime

# Collect user favorites from Bilibili
bilibili = BilibiliRealTime()
bilibili.process_all_users(save_data=True, download_videos=True)

2๏ธโƒฃ Recommendation Engine

from tools.sslrec import run_sslrec

# Run self-supervised recommendation
run_sslrec()

3๏ธโƒฃ Multimodal Analysis

from tools.analyze import analyze

# Analyze all users' content with concurrent processing
analyze(max_workers=5)

4๏ธโƒฃ Content Generation

from tools.product import product

# Generate personalized video and text-image content
product()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages