Skip to content

Commit

Permalink
✨ Add toy dataset to the repository (#350)
Browse files Browse the repository at this point in the history
* Add metrics configuration callback to benchmarking

* Add toy dataset to docs
  • Loading branch information
ashwinvaidya17 authored Jun 7, 2022
1 parent 8adfc6c commit 1c992fb
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 9 deletions.
37 changes: 37 additions & 0 deletions docs/source/data/hazelnut_toy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Hazelnut Toy
============

You can download the toy hazelnut dataset from :download:`here <./hazelnut_toy.zip>`. Distributed under CC-BY-4.0 license.


.. list-table::
:class: borderless

* - .. figure:: ../images/datasets/hazelnut_toy/good.jpg
:scale: 25 %

Example Good Image

.. list-table::
:class: borderless

* - .. figure:: ../images/datasets/hazelnut_toy/colour.jpg
:scale: 25 %

Example Colour Defect

- .. figure:: ../images/datasets/hazelnut_toy/colour_mask.jpg
:scale: 25 %

Example Mask of Colour Defect


* - .. figure:: ../images/datasets/hazelnut_toy/crack.jpg
:scale: 25 %

Example Crack Defect

- .. figure:: ../images/datasets/hazelnut_toy/crack_mask.jpg
:scale: 25 %

Example Mask of Crack Defect
Binary file added docs/source/data/hazelnut_toy.zip
Binary file not shown.
8 changes: 4 additions & 4 deletions docs/source/guides/developing_on_docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Developing on Docker
======================

.. note::
.. note::
You need a CUDA-capable GPU with suitable drivers installed

1. Install `Docker <https://docs.docker.com/engine/install/>`_
Expand Down Expand Up @@ -42,10 +42,10 @@ This creates an interactive bash session inside the Docker container, in which y

The source code is mapped into the running container by means of the `-v "$(pwd)":/anomalib` parameter. This facilitates changes to the source code without having to rebuild the Docker image.

.. note::
.. note::
To forward graphical output of the Docker container to the host operating system, you have to disable access control of the host's X11 server. To this end, execute the shell command `xhost +` on the host.


Using VSCode
============

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
.. Anomalib documentation master file, created by
sphinx-quickstart on Sat Jul 31 09:38:12 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Anomalib's documentation!
====================================

Expand Down Expand Up @@ -51,6 +46,12 @@ This repository as been tested on
guides/using_tox
guides/using_pre_commit

.. toctree::
:maxdepth: 1
:caption: Datasets

data/hazelnut_toy

.. toctree::
:maxdepth: 1
:caption: Research
Expand Down

0 comments on commit 1c992fb

Please sign in to comment.