Skip to main content

Explore and analyze large datasets of images

Project description

Panoptic 👀

PyPI - Version PyPI - Python Version

This documentation is also available in French

Preview

Table of Contents

  1. Description
  2. Installation
    1. Via pip
    2. Automatic Installation and Launch Scripts (recommended)
      1. Windows
      2. Linux
      3. MacOS
    3. Docker Installation
    4. Installation (development)
  3. Documentation
  4. License

1. Description

Panoptic is a tool for exploring and annotating large image corpora, utilizing image analysis and machine learning tools to facilitate these tasks.

Since it requires deep learning libraries, it is recommended to use it on a computer with minimal computing capabilities.

Warning: Panoptic is still in active development and currently only a prototype. You may encounter bugs, so we recommend using this tool only for testing and not relying on it for significant academic work.

2. Installation

2.1 Via pip

Recommended way if you already have Python! We also recommend creating a virtualenv to avoid any existing conflicts.

Regardless of your OS, you will need Python 3.10 or higher; we recommend using version 3.12.

If you are on MacOS, you may need to install the x-tools command line tools. Open a terminal and run the following command: `xcode-select --install` Once installed, you can continue with the Panoptic installation.

Generally, you just need to open a terminal and run the following commands to install and then launch Panoptic:

  • pip3 install panoptic
  • panoptic

2.2 Automatic Installation and Launch Scripts (recommended)

The script may ask for your password to install dependencies. This is necessary if you are missing system dependencies to install Panoptic (python, pip, and/or venv).

2.2.1 Windows

We have a prebuilt launcher hosted here: you can use it to install and then launch Panoptic. Note that you might have a warning message from windows but if you're here, we assume you trust us, if you don't you can still use the python installer!

2.2.2 Linux

Here are the three commands to run to install Panoptic on Linux:

wget https://raw.githubusercontent.com/CERES-Sorbonne/Panoptic/refs/heads/main/install/start_panoptic_linux.sh -O start_panoptic_linux.sh
chmod +x start_panoptic_linux.sh
./start_panoptic_linux.sh

For more detailed steps:

  1. Download the automatic installation and launch script for Panoptic by clicking the following link: start_panoptic_linux.sh or directly from the terminal with the following command:
wget https://raw.githubusercontent.com/CERES-Sorbonne/Panoptic/refs/heads/main/install/start_panoptic_linux.sh -O start_panoptic_linux.sh
  1. Make the script executable by using the file properties or with the following command:
chmod +x start_panoptic_linux.sh
  1. Run the script (double-click the file or use the following command):
./start_panoptic_linux.sh

You can also specify Panoptic launch parameters using the following command:

./start_panoptic_linux.sh [-y|--yes|--assume-yes] [-r|--reinstall] [-s|--start-only] [-u|--uninstall] [--no-bin-copy] [--no-update-script] [-h|--help]

Available options are:

  • -y, --yes or --assume-yes: Use this option to automatically accept all confirmation requests.
  • -r or --reinstall: Use this option to reinstall Panoptic.
  • -s or --start-only: Use this option to launch Panoptic without reinstalling.
  • -u or --uninstall: Use this option to uninstall Panoptic (does not delete data or system dependencies).
  • --no-bin-copy: Use this option to not copy the Panoptic launch script to the /usr/local/bin directory.
  • --no-update-script: Use this option to not update the Panoptic launch script in the /usr/local/bin directory.
  • -h or --help: Use this option to display help.
Post-installation

After installation, you can launch Panoptic using the following command:

start-panoptic

You can also specify Panoptic launch parameters using the following command:

start-panoptic [-y|--yes|--assume-yes] [-r|--reinstall] [-s|--start-only] [-u|--uninstall] [--no-bin-copy] [-no-update-script] [-h|--help]

Available options are:

  • -y, --yes or --assume-yes: Use this option to automatically accept all confirmation requests.
  • -r or --reinstall: Use this option to reinstall Panoptic.
  • -s or --start-only: Use this option to launch Panoptic without reinstalling.
  • -u or --uninstall: Use this option to uninstall Panoptic (does not delete data or system dependencies).
  • --no-bin-copy: Use this option to not copy the Panoptic launch script to the /usr/local/bin directory.
  • --no-update-script: Use this option to not update the Panoptic launch script in the /usr/local/bin directory.
  • -h or --help: Use this option to display help.

2.2.3 MacOS

Here are the three commands to run to install Panoptic on macOS:

curl -O https://raw.githubusercontent.com/CERES-Sorbonne/Panoptic/refs/heads/main/install/start_panoptic_mac.sh
chmod +x start_panoptic_mac.sh
./start_panoptic_mac.sh

For more detailed steps:

  1. Download the automatic installation and launch script for Panoptic by clicking the following link: start_panoptic_mac.sh
  2. Make the script executable by using the file properties or with the following command:
chmod +x start_panoptic_mac.sh
  1. Run the script (double-click the file or use the following command):
./start_panoptic_mac.sh

Post-installation

After installation, you can launch Panoptic by going back to the folder where you executed the installation script and running the following command:

./start-panoptic.sh

2.3 Docker Installation

If you encountered issues with the standard installation, or prefer using Docker, an image is available. First, you need to:

2.3.1 Install Docker

Differences from the Python version

In the Docker version, there is no small interface for adding folders or managing projects; you need to directly specify the folders to Docker to work with:

2.3.2 Option 1: One folder for images and Panoptic data

This requires creating a special folder named "images" within the folder you provide to Panoptic as input. In the following example, you would need a folder named images inside /path/to/your/folder, resulting in /path/to/your/folder/images.

Then run the following command (with Docker already running):

docker run -it -p 8000:8000 -v /path/to/your/folder:/data --name panoptic ceressorbonne/panoptic

2.3.3 Option 2: Separate folders for images and Panoptic data

docker run -it -p 8000:8000 \
-v /path/to/images:/images \
-v /path/to/panoptic/data:/data \
--name panoptic ceressorbonne/panoptic

Once launched, visit http://127.0.0.1:8000 in your browser to access Panoptic.

2.3.4 Post-installation (Docker)

To relaunch Panoptic with Docker after the initial installation:

docker start -ai panoptic

You can also specify Panoptic launch parameters as follows:

docker run -it -p 8000:8000 -v /path/to/your/folder:/data --name panoptic ceressorbonne/panoptic [-y|--yes|--assume-yes] [-r|--reinstall] [-s|--start-only] [-u|--uninstall] [--no-bin-copy] [--no-update-script] [-h|--help]

Available options are the same as for the Linux installation.

2.4 Development Installation

If you want to contribute to Panoptic's development or test the latest unpublished features, you can clone the GitHub repository and install Panoptic in development mode.

2.4.1 Backend Development Only

To test and modify the backend, we provide a pre-built frontend in the backend's html folder.

  • Navigate to the panoptic_back folder.
  • To install dependencies:
    • python3 setup.py install to simply use Panoptic.
    • pip3 install -e . for development.
    • pip3 install -r requirements.txt and add panoptic_back to PYTHON_PATH for development as well.
  • Run the backend with python panoptic/main.py.

2.4.2 Frontend and Backend Development

  1. First, complete the backend installation steps.
  2. Navigate to the panoptic_front folder.
  3. Run npm install.
  4. Start the frontend server with npm run dev.
  5. Before starting the backend, set the environment variable PANOPTIC_ENV to DEV to use the development frontend.

License

This project is licensed under the GNU-GPL3 - see the LICENSE file for details.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

panoptic-0.7.4.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

panoptic-0.7.4-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file panoptic-0.7.4.tar.gz.

File metadata

  • Download URL: panoptic-0.7.4.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for panoptic-0.7.4.tar.gz
Algorithm Hash digest
SHA256 cf966e0b6bce2bf33114df304c2cd9181c53428a81d49b08fc86610fe98a25bc
MD5 315e4f0bc053237f5ae8be9ebe94d7db
BLAKE2b-256 9ca8fb870699a1f5d9c366ba7b7cdba5884c16ec6297bd5f1fcb109e924379ca

See more details on using hashes here.

File details

Details for the file panoptic-0.7.4-py3-none-any.whl.

File metadata

  • Download URL: panoptic-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for panoptic-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bc7e1ac69c7e8c97c03d8dafc5daffcad33d60da39ef583782680bf0bd01eb37
MD5 b331200c0e90cf2c2bd1d3f99e80fb1a
BLAKE2b-256 7198976a365374eff6e96e130eb7f5fb867c205935ace4e2eed335bf614518cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page