Skip to main content

Fast Image Annotation Tool, Free image labeling tool for deep learning

Project description

FIAT 0.7 (Fast Image Annotation Tool)

FIAT is a free image labeling tool developed in C# WPF based on Visual Studio 2022
The current version supports labeling classification datasets and provides a PyTorch dataset loader.

Development Environment

  • Visual Studio 2022
  • Microsoft .NET 6

Installation

pip install fiat-tool 

Download

Reference

DEMO

  • Classification

Menu

No Function No Function
1 Open image folder 2 Save dataset
3 Add target label 4 Delete target label
5 Add label 6 Delete label
7 Add label on all 8 Delete label on all
9 Previous image 10 Nex image
11 Progress bar

Shortcut Key

Shortcut Key Function
F1 ~ F12 Label the image with the target label at that index
Ctrl + S Save all label information
Ctrl + O Open image folder
Up Previous image
Down Next image

PyTorch training loop example

from fiat_tool.FIATClassificationDataset import FIATClassificationDataset
from torch.utils.data import DataLoader


batch_size = 1
training_epochs = 1

datasets = FIATClassificationDataset('C://Github//FIAT//example_dataset//food//',
                                     label_height=224,
                                     label_width=224,
                                     isColor=True,
                                     isNorm=False)

data_loader = DataLoader(datasets, batch_size=batch_size, shuffle=True)

for epoch in range(training_epochs): # 앞서 training_epochs의 값은 15로 지정함.
    avg_cost = 0
    avg_acc = 0
    total_batch = len(data_loader)

    for x_input, y_input in data_loader:
        print('x_input shape = ', x_input.shape)
        print('y_input shape = ', y_input.shape)




print('Training loop finished')
C:\Python\python.exe C:/Github/FIAT/python/torch_classification_FIATC_test.py
{'Color': '#FFFF0000', 'Name': 'Bread'}
{'Color': '#FF008000', 'Name': 'Pizza'}
{'Color': '#FFFFFFFF', 'Name': 'Hamburger'}
{'Color': '#FFF79646', 'Name': 'Chicken'}
x_input shape =  torch.Size([1, 3, 224, 224])
y_input shape =  torch.Size([1, 4])
x_input shape =  torch.Size([1, 3, 224, 224])
y_input shape =  torch.Size([1, 4])

Strcture

Classification

  • __target_info.json
    • File containing representative label information
[
    {
        "Color":"#FFFF0000",
        "Name":"Bread"
        
    },
    {
        "Color":"#FF008000",
        "Name":"Pizza"
        
    },
    {
        "Color":"#FFFFFFFF",
        "Name":"Hamburger"
        
    },
    {
        "Color":"#FFF79646",
        "Name":"Chicken"
        
    }
]
  • (each file).json
    • A file containing user-labeled information about an image.
{
    "FileName":"1_1_bread.jpg",
    "FilePath":"C:\\Users\\Fiat\\Desktop\\food\\1_1_bread.jpg",
    "ClassCollection":[
        {
            "Color":"#FFFF0000",
            "Name":"Bread"
            
        }
    ]
    
}

TOP

The MIT License (MIT)

Copyright (c) 2022-present FIAT Development Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

TOP

Project details


Download files

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

Source Distribution

fiat-tool-0.7.0.12.tar.gz (5.1 kB view hashes)

Uploaded Source

Supported by

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