Skip to content

Latest commit

 

History

History
84 lines (58 loc) · 5.51 KB

README.md

File metadata and controls

84 lines (58 loc) · 5.51 KB

AdGPT: Explore Meaningful Advertising with ChatGPT

Official repo for AdGPT: Explore Meaningful Advertising with ChatGPT

Method

Environment Setup

conda create -n AdGPT python=3.9
conda activate AdGPT

pip install -r requirements.txt

pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116

python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'

Inferrence

AdGPT

Openai series

CUDA_VISIBLE_DEVICES=0 python demo.py --image_path ./img/test.jpg \
               --openai \
               --openai_key YOUR_API_KEY \
               --openai_base https://api.openai.com/v1 \
               --chat_model gpt-4o-mini

GLM series


CUDA_VISIBLE_DEVICES=0 python exp.py --image_path img/book.jpg \
               --chatglm \
               --glm_key YOUR_API_KEY \
               --glm_model glm-4-flash \
               --version cn \

Check OpenAI and GLM documents for how to get your own API.

Example

Image Summary
Image This advertisement features a pair of high-performance shoes, distinguished by a visually striking fire trail that symbolizes exceptional speed and agility. Targeted at athletes and fitness enthusiasts, the ad suggests that these shoes can significantly enhance athletic performance. While specific promotional offers or a clear call to action are not detailed in the provided analysis, the imagery alone strongly encourages potential buyers to explore and possibly purchase the shoes to unlock their peak performance capabilities. The ad's emotional and visual appeal lies in its promise of speed, making it memorable and engaging for its intended audience.
Image This Nissan GT-R advertisement capitalizes on themes of speed and celebrity endorsement to position the sports car as a symbol of performance and luxury. By highlighting its rapid acceleration and associating the vehicle with Usain Bolt, the "world's fastest man," the ad targets sports car enthusiasts and those who aspire to the pinnacle of automotive achievement. The inclusion of a socially engaging element through a Facebook link, along with the imagery used, aims to create an aspirational image for the Nissan GT-R, inviting the audience to envision themselves at the pinnacle of success and performance.
Image This advertisement from the WWF leverages the image of a turtle in the ocean, accompanied by a digital "Save" button, to highlight the urgent need for environmental conservation, particularly marine life protection. By creating an emotional appeal through wildlife imagery and presenting a clear call to action, the ad encourages viewers to contribute to saving the planet, either through donations or engagement in conservation efforts. The use of the "Don't Save" versus "Save" buttons cleverly emphasizes the impact of individual choices, urging immediate action to support the cause and make a positive difference for living creatures and their habitats.

Benchmarks & Metrics

Generative Similarity Score

python test.py --GSS

benchmarks

TODO

  • Metrics-ChatGPT Rating
  • Downstream Task-Slogan Generation
  • Chinese Version AdGPT

Acknowledgement

We would like to express our gratitude to previous work, which includes but is not limited to: Diffusers, EasyOCR, Detic, Transformers, CNOCR and detectron2.