Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jerryshell/osmos
- Owner: jerryshell
- License: agpl-3.0
- Created: 2023-02-04T19:29:40.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-23T22:02:01.000Z (12 days ago)
- Last Synced: 2024-12-26T12:07:45.384Z (10 days ago)
- Topics: genetic-algorithm, neural-network, rust, solidjs, vite, wasm, webassembly
- Language: Rust
- Homepage: https://osmos.jerryshell.eu.org
- Size: 320 KB
- Stars: 62
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)