Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jerryshell/osmos

Rust + WASM + Neural Network + Genetic Algorithm
https://github.com/jerryshell/osmos

genetic-algorithm neural-network rust solidjs vite wasm webassembly

Last synced: 2 days ago
JSON representation

Rust + WASM + Neural Network + Genetic Algorithm

Awesome Lists containing this project

README

        

# Osmos

Rust + WASM + Vite + 神经网络 + 遗传算法

Bilibili 视频:[BV1vj411A7k2](https://www.bilibili.com/video/BV1vj411A7k2)

立刻体验:[osmos.jerryshell.eu.org](https://osmos.jerryshell.eu.org)

## 如何运行

1. 安装 `wasm-pack`

[https://rustwasm.github.io/wasm-pack](https://rustwasm.github.io/wasm-pack)

2. 编译 `osmos-wasm`

```bash
cd osmos-wasm
wasm-pack build --out-dir ../osmos-web/osmos-wasm
```

3. 进入 `osmos-web` 安装依赖并运行

```bash
cd osmos-web
npm install
npm run dev
```

## 项目结构简介

```
osmos
├── osmos-core # 核心数据结构
├── osmos-ga # 遗传算法
├── osmos-nn # 神经网络
├── osmos-sim # 进化模拟器
│ └── src
│ └── system # 子系统
│ ├── collision.rs # 碰撞系统
│ ├── epoch.rs # 迭代系统
│ ├── movement.rs # 移动系统
│ ├── network.rs # 神经网络系统
│ └── sensor.rs # 感知器系统
├── osmos-wasm # 将模拟器编译为 WASM,代理模式
└── osmos-web # Web UI,通过导入 WASM 启动模拟器,并将模拟器的数据渲染到 Canvas 中
```

## 开源协议

[GNU Affero General Public License v3.0](LICENSE)