This repository allows you to generate synthetic images, annotated spv2 dataset format into spv2-COCO format, and enhance synthetic images using cycleGAN turbo.
This repository contains :
Syntethic_generation\
: Utilizes Blender to generate synthetic images with their pose in SPV2 format.spv2_2_coco_annotation\
: Converts and annotates SPV2 format dataset into the COCO format for keypoint detection (pose estimation).domain_adaptation\
: Provide tools to translate images from synthetic domain to "lightbox" or "sunlamp" domain. (cycleGAN-turbo)data\
: Contains both source and created datasets.
Everything can be runned locally exepted the training and inferencing of the AI-based model (cycleGAN-turbo here). They are performed using AWS (SageMaker and S3), dedicated scripts are provided.
These instructions will guide you through setting up your local environment to work with the project.
Ensure you have the following software installed:
- Git: For cloning and managing the repository.
- Blender: Required for generating synthetic images and annotating datasets.
- Python: The programming language used in the project, along with
pip
for package management. - Virtual Environment: To manage Python dependencies.
- Git LFS: To handle large files in the repository.
-
Open your terminal.
-
Navigate to the directory where you want to clone the project.
-
Clone the repository using Git:
git clone https://gitlab.sudouest.sii.fr/community/tmd/co-operate/aspera/aspera_synthetic_generation.git
-
Navigate into the project directory:
cd aspera_synthetic_generation
Blender is needed for dataset generation. To install Blender:
-
Visit the official Blender download page.
-
Download and install the appropriate version for your operating system.
-
Confirm the installation by running:
blender --version
Set up Python and its dependencies as follows:
-
Ensure Python is installed. Download it from the official Python website.
-
Verify
pip
installation:pip --version
-
Create a virtual environment in your project directory:
python -m venv venv
-
Activate the virtual environment:
-
Windows:
venv\Scripts\activate
-
macOS/Linux:
source venv/bin/activate
-
-
Install project dependencies from the
requirements.txt
file:pip install -r requirements.txt
Install and configure Git LFS for managing large files:
-
Follow the Git LFS installation guide.
-
Initialize Git LFS in your cloned repository:
git lfs install
-
Pull the LFS files to your local repository:
git lfs pull
To generate a 3D dataset using Blender, navigate to the synthetic_generation
directory and refer to the spv2_annotation/README.md file located there.
To convert and annotate the SPV2 dataset to the COCO format, navigate to the spv2_2_coco_annotation
directory and refer to the spv2_2_coco_annotation/README.md for detailed steps and usage.
To convert synthetic images into "lightbox" or "sunlamp" domain images, navigate to the spv2_annotation
directory and refer to the domain_adaptation/README.md for detailed steps and usage.
- Internship Report: Matthieu Marchal's report on ASPERA project (2024)
- Official COCO dataset documentation: COCO documentation.
- CycleGAN-turbo repository:GaParmar