Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

GD NNabla C Runtime for GodotEngine 4.1

An asset by MizunagiKB
The page banner background of a mountain and forest
GD NNabla C Runtime for GodotEngine 4.1 hero image

Quick Information

0 ratings
GD NNabla C Runtime for GodotEngine 4.1 icon image
MizunagiKB
GD NNabla C Runtime for GodotEngine 4.1

This Addon is a NNabla C Runtime that can be called from GDScript (Godot Engine 4.1).The available trained models are the same as the original, only in NNB format.

Supported Engine Version
4.1
Version String
v1.0.0-godot4.1
License Version
Apache-2.0
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

= NNabla C Runtime for GDScript :lang: ja :doctype: book :author: MizunagiKB :toc: left :toclevels: 3 :icons: font :experimental: :stem:

== About

link:README.ja.adoc[この文書の日本語版]

This Addon is a link:https://github.com/sony/nnabla-c-runtime[NNabla C Runtime] that can be called from GDScript (Godot Engine 4.1).

The available trained models are the same as the original, only in NNB format.

=== Usage

[source,gdscript]

Loading NNB files

var rf = FileAccess.open("res://model.nnb", FileAccess.READ) var rf_size = rf.get_length() var nnb = rf.get_buffer(rf_size) rf.close()

Creation of NNabla C Runtime

nn_crt = GDNNablaCRuntime.new()

Initialization of NNabla C Runtime

nn_crt.rt_allocate_context()

Set NNB file

nn_crt.rt_initialize_context(nnb)

1) Set input values

var ary_i = PackedFloat32Array([1.0]) nn_crt.rt_input_buffer(0, ary_i)

2) inference

nn_crt.rt_forward()

3) Get output values

var ary_o = nn_crt.rt_output_buffer(0)

End processing

nn_crt.rt_free_context()

NOTE: For multiple inferences, 1, 2, and 3 can be repeated in succession.

== More detailed usage

See the following pages for usage, including model generation.

link:doc/USAGE.ja.adoc[]

== Licenses

This program is licensed under the Apache 2.0 license.

However, this program depends on the NNabla C Runtime, which is a separate program. (Apache 2.0 License)

Please be careful when making license notations.

== Related Information

This Addon is a NNabla C Runtime that can be called from GDScript (Godot Engine 4.1).

The available trained models are the same as the original, only in NNB format.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
GD NNabla C Runtime for GodotEngine 4.1 icon image
MizunagiKB
GD NNabla C Runtime for GodotEngine 4.1

This Addon is a NNabla C Runtime that can be called from GDScript (Godot Engine 4.1).The available trained models are the same as the original, only in NNB format.

Supported Engine Version
4.1
Version String
v1.0.0-godot4.1
License Version
Apache-2.0
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers