Git Product home page Git Product logo

tin's Introduction

Traditional Inspired Network

This repository contains the implementation details of our paper:

"TRADITIONAL METHOD INSPIRED DEEP NEURAL NETWORK FOR EDGE DETECTION"
by Jan Kristanto Wibisono , Hsueh-Ming Hang

image image

Dependencies

  • Python 3.7
  • Pytorch 1.4

Network Structure

Our systems contain three basic modules: Feature Extractor, Enrichment, and Summarizer, which roughly correspond to gradient, low pass filter, and pixel connection in the traditional edge detection schemes.

image

Evaluation

image Comparison of complexity and accuracy performance among various edge detection schemes. Our proposed methods (Green). BDCN family (Red). Other methods (Blue). ODS (Transparent label). Number of Parameter (Orange label)

Todo:

Testing

    python inference.py

Manual Input

    python test.py

image image image image

Training

    python train.py

Citing

Thanks for your interest in our work, please consider citing:

    @INPROCEEDINGS{9190982,
      author={J. K. {Wibisono} and H. -M. {Hang}},
      booktitle={2020 IEEE International Conference on Image Processing (ICIP)}, 
      title={Traditional Method Inspired Deep Neural Network For Edge Detection}, 
      year={2020},
      volume={},
      number={},
      pages={678-682},
    }

tin's People

Contributors

jannctu avatar

Stargazers

 avatar  avatar rafiki avatar hanban avatar Aayush Manandhar avatar  avatar An-zhi WANG avatar  avatar 郭晨伟 avatar  avatar Richey Huang avatar wangyunhong avatar CHONG YOE YAT avatar  avatar  avatar  avatar Reshu Singh avatar YewLee, Wong avatar  avatar JackyCSer avatar  avatar 5l1v3r1 avatar  avatar  avatar Shuyue Jia avatar muuk avatar  avatar Katsuya Hyodo avatar  avatar  avatar  avatar Vijaysrinivas Rajagopal avatar  avatar Lawrence avatar YinZhaoYuan avatar Kaeli avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

tin's Issues

custom kernel code seems odd

shouldn't it be something like

k[i, j] = np.cos(np.deg2rad(deg)) * kd[i, j] + np.sin(np.deg2rad(deg)) * kd[i, j]

???

training code

Could you share with us the training code and the loss function?

Initial 16 Directional Gradient Kernels?

Hello @jannctu!

What are the initial 16 directional gradient kernels?

I want to submit a PR with a TensorFlow implementation of TIN2, but the initial gradient kernels aren't defined in the paper or the code.

Dataloader error

Hello,

At the Dataloader I am getting following errors:
ValueError: Caught ValueError in DataLoader worker process 0.
ValueError: not enough values to unpack dataload

Btw I am using MacOS, and I don't have NVidia Graphics card so I am not using CUDA. Thus, at inference.py I closed the following line:
#model.cuda()

and I modified the following line as:
checkpoint = torch.load(weight_file, map_location=torch.device('cpu'))

Do you have any idea on how i can solve this issue?

Thank you!
Sinem

Summarizer

Hello Jan!

Could you please re-explain and detail a bit more the function of the Summarizer module?

It is writing in the paper that:

The last module tries to summarize the features generated by the
Enrichment modules and to produce the final edges. We use eight
1x1 convolutional layers together with a sigmoid activation function.
Fig. 5(a) shows the 8 channel outputs of Summarizer 1 (Point C on
Fig. 6), and (b) shows the final output of two summarizers (Point D
in Fig. 6).

How summarization is performed? Can we consider that convolution operation something like a sum operation and sigmoid function something like thresholding?

Thank you,
Sinem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.