rockcarry / ffcnn Goto Github PK
View Code? Open in Web Editor NEWffcnn is a cnn neural network inference framework, written in 600 lines C language.
License: GNU Lesser General Public License v3.0
ffcnn is a cnn neural network inference framework, written in 600 lines C language.
License: GNU Lesser General Public License v3.0
调整图片test.bmp大小的参数在哪里? 是不是你训练的时候是固定的,所以不能改,只能输入640 424的大小?
谢谢
>> bash build.sh
ffcnn.c: In function ‘net_load’: ffcnn.c:216:96: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] if ((fp = fopen(fweights, "rb"))) { fseek (fp, sizeof(WEIGHTS_FILE_HEADER), SEEK_SET); fread (net->weight_buf, 1, net->weight_size * sizeof(float), fp); fclose(fp); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ffcnn.c: In function ‘load_file_to_buffer’: ffcnn.c:27:16: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] if (buf) { fread(buf, 1, size, fp); buf[size] = '\0'; } ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/ccOQFshr.o: In function `net_forward.part.7': ffcnn.c:(.text+0x154d): undefined reference to `exp' ffcnn.c:(.text+0x2157): undefined reference to `exp' ffcnn.c:(.text+0x2377): undefined reference to `exp' ffcnn.c:(.text+0x2397): undefined reference to `exp' ffcnn.c:(.text+0x24ad): undefined reference to `exp' /tmp/ccOQFshr.o:ffcnn.c:(.text+0x24e1): more undefined references to `exp' follow collect2: error: ld returned 1 exit status
System info: gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
修改build.sh为gcc -Wall -O3 bmpfile.c ffcnn.c -o ffcnn -lm
可以编译通过。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.