Skip to content

Unsure on how to use on custom dataset #751

Answered by djdameln
lekshmijk asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, Anomalib models can be trained on custom datasets using the Folder dataset format. Please have a look at this guide in our documentation for a detailed explanation and an example of training on custom data.

In your case, the dataset section of your config will look something like this:

dataset:
  name: battery  # you are free to choose your own name here
  format: folder
  path: <path-to-dataset>/battery_cell
  normal_dir: train/good
  abnormal_dir: test/not_good
  task: classification  # classification or segmentation
  mask: null  # optional, required when task type is segmentation
  normal_test_dir: test/good  # optional
  ...

Please note that training with the segmentation task t…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@lekshmijk
Comment options

@djdameln
Comment options

@lekshmijk
Comment options

@ardiya
Comment options

@cory619-seungwon
Comment options

Answer selected by djdameln
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #747 on December 01, 2022 09:22.