Comments (2)
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.
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)
- Is compatible with latest onnxruntime (1.15.0) ? HOT 3
- Can this run in Jetson Nano ? if yes please help me tutorial setting env HOT 3
- doesnt work on custom dataset HOT 9
- When I try to run the code, I get always Ort::exception even running on image or video HOT 1
- Help me with implementing this project. HOT 8
- About model chooses HOT 1
- C# version HOT 6
- How to run inference with ONNX uint8 model?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolo-nas-onnxruntime.