Views
No views yet
pip install torch transformers diffusers tqdm numpy pandas sentence-transformers faiss-cpu openai huggingface_hub safetensorsMicrolens/ folder:| File | Description |
|---|---|
MicroLens-100k_likes_and_views.txt | Video engagement stats (tab-separated) |
MicroLens-100k_title_en.csv | Cover image descriptions (comma-separated) |
Microlens100K_captions_en.csv | Video captions in English (tab-separated) |
MicroLens-100k_comment_en.txt | User comments (tab-separated) |
tags_to_summary.csv | Video category tags (comma-separated) |
LLMPopcorn/
├── Microlens/
│ ├── MicroLens-100k_likes_and_views.txt
│ ├── MicroLens-100k_title_en.csv
│ ├── Microlens100K_captions_en.csv
│ ├── MicroLens-100k_comment_en.txt
│ └── tags_to_summary.csv
├── PE.py
├── pipline.py
└── ...LLMPopcorn.py script:python LLMPopcorn.pyPE.py script:python PE.pygenerating_images_videos_three.py script:python generating_images_videos_three.pydatasetspip install datasets1from datasets import load_dataset
2
3# Load the LLMPopcorn prompts
4dataset = load_dataset("junchenfu/llmpopcorn_prompts")
5
6# Access the data (abstract or concrete)
7for item in dataset["train"]:
8 print(f"Type: {item['type']}, Prompt: {item['prompt']}")PE.py + pipline.py), we provide a pre-processed version of the MicroLens dataset on Hugging Face so you don't need to download and process the raw files manually.| Column | Description |
|---|---|
video_id | Unique video identifier |
title_en | Cover image description (used as title) |
cover_desc | Cover image description |
caption_en | Full video caption in English |
partition | Video category (e.g., Anime, Game, Delicacy) |
likes | Number of likes |
views | Number of views |
comment_count | Number of comments (used as popularity signal) |
1from datasets import load_dataset
2
3rag_dataset = load_dataset("junchenfu/microlens_rag")
4
5# Access as a pandas DataFrame
6df = rag_dataset["train"].to_pandas()
7print(df.head())
8print(f"Total: {len(df)} videos, {df['partition'].nunique()} categories")