Giter Site home page Giter Site logo

isroalka / hformer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 3d-measurement/hformer

0.0 0.0 0.0 123.71 MB

Hformer: Hybrid CNN-Transformer for Single Wrapped Phase to Fringe Order Prediction Fringe Projection 3D measurement

License: Apache License 2.0

Shell 0.04% C++ 3.42% Python 93.29% Java 2.46% CMake 0.79%

hformer's Introduction

Xinjun Zhu, Zhiqiang Han, Mengkai Yuan, Qinghua Guo, Hongyi Wang, Limei Song, "Hformer: hybrid convolutional neural network transformer network for fringe order prediction in phase unwrapping of fringe projection," Opt. Eng. 61(9), 093107 (2022), doi: 10.1117/1.OE.61.9.093107.

Note

  • The code is tested with python=3.7 and paddlepaddle=2.0.2

Begin to train

  • python PaddleSeg/train.py --config PaddleSeg/configs/Hformer/Hformer.yml --do_eval --use_vdl

Begin to test

  • python PaddleSeg/predict.py --config PaddleSeg/configs/Hformer/Hformer.yml --model_path output/best_model/model.pdparams --image_path dataset path --save_dir result --aug_pred --is_slide --crop_size 384 384 --stride 256 96

Begin to test with horizontal flip and vertical flip

  • python PaddleSeg/predict.py --config PaddleSeg/configs/Hformer/Hformer.yml --model_path output/best_model/model.pdparams --image_path dataset path --save_dir result --aug_pred --is_slide --crop_size 384 384 --stride 256 96 --flip_horizontal --flip_vertical

Requirements

  • pip install -r requirements.txt

References of datasets

  • [1] Qian, J., Feng, S., Tao, T., Hu, Y., Li, Y., Chen, Q., Zuo, C.: Deep learning-enabled geometric constraints and phase unwrapping for single shot absolute 3d shape measurement. Apl Photonics 5(4), 046105 (2020). https://doi.org/10.1063/5.0003217
  • [2] Zuo, C., Qian, J., Feng, S. et al. Deep learning in optical metrology: a review. Light Sci Appl 11, 39 (2022). https://doi.org/10.1038/s41377-022-00714-x

Acknowledgement

Citation

Xinjun Zhu, Zhiqiang Han, Mengkai Yuan, Qinghua Guo, Hongyi Wang, Limei Song, "Hformer: hybrid convolutional neural network transformer network for fringe order prediction in phase unwrapping of fringe projection," Opt. Eng. 61(9), 093107 (2022), doi: 10.1117/1.OE.61.9.093107.

hformer's People

Contributors

3d-measurement avatar

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.