Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Object Tales is a Python application that generates short stories based on the objects detected in an image.

Notifications You must be signed in to change notification settings

Rexaintreal/Object-Tales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Tales

License: MIT Python: 3.8 yolov3-320: v4.0 gpt-2: v2.2

Object Tales Logo

Object Tales generates stories based on the objects in the images. It uses YOLOv3-320 to detect objects and GPT-2 to generate stories. This is a Python 3.8 application.


Table of Contents


Installation

Clone the repository:

git clone https://github.com/Rexaintreal/object-tales.git

cd object-tales/

Install dependencies:

pip install -r requirements.txt

Download YOLOv3-320 weights:

Download the pre-trained YOLOv3-320 weights from the official repository using the following command:

wget https://pjreddie.com/media/files/yolov3.weights -O models/yolov3-320.weights

Download GPT-2 model:

Download the GPT-2 model from OpenAI using the following command:

python download_model.py 117M

Usage

To use the Object Tales GUI application, follow these steps:

  1. Launch the application by running the main.py file.
  2. Click the "Open Image" button to select an image to generate a story for.
  3. Click the "Generate Story" button to generate a story based on the objects detected in the selected image.
  4. The generated story will be displayed in the "Story" section of the application.

Note: Make sure that the required dependencies are installed before launching the application. See the "Installation" section for details. Screenshot 1 Screenshot 2

How it Works

Object Tales is a Python-based application that generates stories based on the objects in the images. It uses a combination of YOLOv3-320 object detection and GPT-2 text generation to analyze the images and create unique and engaging narratives.

When you run the program, you can select an image from your local file system or use the program's built-in camera to capture an image. Object Tales then uses YOLOv3-320 to identify the objects in the image and extract their features. These features are then passed to GPT-2, which generates a story based on the objects and their attributes.

The program outputs the generated story to the screen, and you can save it to a file if desired. Object Tales also allows you to adjust the length and complexity of the generated stories, as well as the confidence threshold for object detection.

Overall, Object Tales provides a fun and creative way to explore the stories hidden in everyday objects and images.

Working

Author

Object Tales was created by Saurabh Tiwari.

You may also like...

About

Object Tales is a Python application that generates short stories based on the objects detected in an image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages