Code Monkey home page Code Monkey logo

Comments (2)

jason-li-831202 avatar jason-li-831202 commented on July 18, 2024

inputTensorValuesFp16.push_back(float32_to_float16(fp32)); Typically, this is only used when the model is in fp16. If you use the following parameters during conversion by convertPytorchToONNX.py:
--half : Convert fp32 to fp16 model.

could you please provide the full error message?

from yolo-nas-onnxruntime.

blackHorz avatar blackHorz commented on July 18, 2024

Hello Jason, Thanks for your feedback. But I encounter this error during build process.

Build started... 1>------ Build started: Project: YoloNAS, Configuration: Debug x64 ------ 1>detector.cpp 1>C:\Users\st34616.FFT-IT\Desktop\YoloNAS\YoloNAS\detector.cpp(63,78): warning C4244: 'argument': conversion from '_Ty' to '_Tp', possible loss of data 1> with 1> [ 1> _Ty=int64_t 1> ] 1> and 1> [ 1> _Tp=int 1> ] 1>C:\Users\st34616.FFT-IT\Desktop\YoloNAS\YoloNAS\detector.cpp(63,55): warning C4244: 'argument': conversion from '_Ty' to '_Tp', possible loss of data 1> with 1> [ 1> _Ty=int64_t 1> ] 1> and 1> [ 1> _Tp=int 1> ] 1>C:\Users\st34616.FFT-IT\Desktop\YoloNAS\YoloNAS\detector.cpp(65,47): warning C4244: '=': conversion from '_Ty' to 'int', possible loss of data 1> with 1> [ 1> _Ty=int64_t 1> ] 1>C:\Users\st34616.FFT-IT\Desktop\YoloNAS\YoloNAS\detector.cpp(66,46): warning C4244: '=': conversion from '_Ty' to 'int', possible loss of data 1> with 1> [ 1> _Ty=int64_t 1> ] 1>C:\Users\st34616.FFT-IT\Desktop\YoloNAS\YoloNAS\detector.cpp(270,69): error C2664: 'void std::vector<Ort::Float16_t,std::allocator<Ort::Float16_t>>::push_back(const _Ty &)': cannot convert argument 1 from 'uint16_t' to 'const _Ty &' 1> with 1> [ 1> _Ty=Ort::Float16_t 1> ] 1>C:\Users\st34616.FFT-IT\Desktop\YoloNAS\YoloNAS\detector.cpp(270,69): message : Reason: cannot convert from 'uint16_t' to 'const _Ty' 1> with 1> [ 1> _Ty=Ort::Float16_t 1> ] 1>C:\Users\st34616.FFT-IT\Desktop\YoloNAS\YoloNAS\detector.cpp(270,69): message : Constructor for struct 'Ort::Float16_t' is declared 'explicit' 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vector(742,33): message : see declaration of 'std::vector<Ort::Float16_t,std::allocator<Ort::Float16_t>>::push_back' 1>Done building project "YoloNAS.vcxproj" -- FAILED.

from yolo-nas-onnxruntime.

Related Issues (9)

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.