Skip to content

NackFelipe/ModernWoodSegmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the repository of the article entitled

A Comparison of Modern Deep Neural Networks Architectures for Cross-section Segmentation in Images of Log Ends

Abstract

The semantic segmentation of log faces constitutes the initial step towards subsequent quality analyses of timber, such as quantifying properties like mechanical strength, durability, and the aesthetic attributes of growth rings. In the literature, works based on both classical and machine learning approaches for this purpose can be found. However, more recent architectures and techniques, such as Vits or even the latest CNNs, have not yet been thoroughly evaluated. This study presents a comparison of modern deep neural network architectures for cross-section segmentation in images of log ends. The results obtained indicate that the networks using the ViTs considered in this work outperformed those previously evaluated in terms of both accuracy and processing time.

Image Abstract

Deploy

1 - Install MM Segmentation. This work was elaborated using MM Segmentation version 0.30.0.
2 - Clone this repository git clone https://github.com/NackFelipe/ModernWoodSegmentation.git
3 - Update the file cityscapes.py at your MM Segmentation installation folder (.../mmsegmentation/mmseg/datasets/cityscapes.py)
4 - Run the script main.py

python main.py ${CONFIG_FILE} ${CHECKPOINT_FILE} [optional arguments]

Example

python main.py /home/user/Downloads/unet_all.py /home/user/Downloads/unet_all.pth

Usage

Download your desired checkpoint file and the dataset. Execute step 4 of the Deploy section with them. Check the links below to download all files:

Original datasets:

ane.zip
huawei.zip
lumix.zip
sbg_TS3.zip
sbg_TS12.zip

Prepared dataset:

ModernWoodSegmentation.zip

U-Net

Dataset Config File Checkpoint
All unet_all.py unet_all.pth
ane unet_ane.py unet_ane.pth
huawei unet_huawei.py unet_huawei.pth
lumix unet_lumix.py unet_lumix.pth
sbg_TS3 unet_sbgts3.py unet_sbgts3.pth
sbg_TS12 unet_sbgts12.py unet_sbgts12.pth

Fast FCN

Dataset Config File Checkpoint
All fastfcn_all.py fastfcn_all.pth
ane fastfcn_ane.py fastfcn_ane.pth
huawei fastfcn_huawei.py fastfcn_huawei.pth
lumix fastfcn_lumix.py fastfcn_lumix.pth
sbg_TS3 fastfcn_sbgts3.py fastfcn_sbgts3.pth
sbg_TS12 fastfcn_sbgts12.py fastfcn_sbgts12.pth

Segformer

Dataset Config File Checkpoint
All segformer_all.py segformer_all.pth
ane segformer_ane.py segformer_ane.pth
huawei segformer_huawei.py segformer_huawei.pth
lumix segformer_lumix.py segformer_lumix.pth
sbg_TS3 segformer_sbgts3.py segformer_sbgts3.pth
sbg_TS12 segformer_sbgts12.py segformer_sbgts12.pth

Swin

Dataset Config File Checkpoint
All swin_all.py swin_all.pth
ane swin_ane.py swin_ane.pth
huawei swin_huawei.py swin_huawei.pth
lumix swin_lumix.py swin_lumix.pth
sbg_TS3 swin_sbgts3.py swin_sbgts3.pth
sbg_TS12 swin_sbgts12.py swin_sbgts12.pth

Twins

Dataset Config File Checkpoint
All twins_all.py twins_all.pth
ane twins_ane.py twins_ane.pth
huawei twins_huawei.py twins_huawei.pth
lumix twinslumix.py twins_lumix.pth
sbg_TS3 twins_sbgts3.py twins_sbgts3.pth
sbg_TS12 twins_sbgts12.py twins_sbgts12.pth

About

Repository for the article entitled 'A Comparison of Modern Deep Neural Networks Architectures for Cross-section Segmentation in Images of Log Ends'

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages