Code Monkey home page Code Monkey logo

Comments (2)

beru avatar beru commented on May 27, 2024

I'm having similar issue with different model (in my case, the model is yolov3-tiny.onnx) .

I added ONNX_LOG calls to the onnx_graph_alloc function for debugging.

		if(!n->operator)
		{
			resolver_solve_operator(&resolver_default, n);
			if(n->operator)
			{
				n->r = &resolver_default;
				n->rctx = NULL;
			}
			else
			{
				ONNX_LOG("Unresolved!\r\n");
				ONNX_LOG("n->proto->op_type : %s\r\n", n->proto->op_type);
				ONNX_LOG("n->proto->name : %s\r\n", n->proto->name);
				ONNX_LOG("n->opset : %d\r\n", n->opset);
				ONNX_LOG("n->inputs[0]->type : %d\r\n", n->inputs[0]->type);
			}
		}
		if(!n->reshape)
			n->reshape = reshape_dummy;
		if(!n->operator) {
			n->operator = operator_dummy;
		}
		if(n->init)
		{
			if(n->init(n) <= 0)
			{
				ONNX_LOG("n->init failed\r\n");
				ONNX_LOG("i : %d\r\n", i);
				ONNX_LOG("n->proto->op_type : %s\r\n", n->proto->op_type);
				ONNX_LOG("n->proto->name : %s\r\n", n->proto->name);
				if(g->nodes)
				{

There're a few things I have noticed.

  • Resize operator is still not implemented.
  • Many operators such as Concat, input data type must be defined when resolving operators. But it looks like it's undefined before running the model.

from libonnx.

lzlwakeup avatar lzlwakeup commented on May 27, 2024

I have same issue with Segmentation fault (core dumped).
model in https://github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB
xxd convert onnx model to .h file, load model err in onnx_graph_alloc()
in onnx.c line 1171, model g->nlen = 242, but run end 82, and Segmentation fault.

from libonnx.

Related Issues (20)

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.