|
|
@ -1,65 +1,67 @@
|
|
|
|
# PermHack
|
|
|
|
# Искуственный - да, Интелект- нет
|
|
|
|
|
|
|
|
|
|
|
|
<a alt="Nx logo" href="https://nx.dev" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="45"></a>
|
|
|
|
✨ Нами был реализован микросервисный комплекс использующий ансамбль свёрточных нейронных сетей на базе YOLO v8 и Torch Vision. Мы провели анализ доступных архитектур для решения поставленной задачи и остановились на данном решении ввиду его производительности. Наша платформа поставляется вместе с оптимизированными сервисами сбора метрик и современным WEB-интерфейсом. Кроме этого мы интегрировали наш программный продукт с промышленными системами видеонаблюдения mars.
|
|
|
|
|
|
|
|
|
|
|
|
✨ **This workspace has been generated by [Nx, a Smart, fast and extensible build system.](https://nx.dev)** ✨
|
|
|
|
## Развертывание
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
liygfdlifdsijlkjb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Start the app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To start the development server run `nx serve crud`. Open your browser and navigate to http://localhost:4200/. Happy coding!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Generate code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If you happen to use Nx plugins, you can leverage code generators that might come with it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Run `nx list` to get a list of available plugins and whether they have generators. Then run `nx list <plugin-name>` to see what generators are available.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Learn more about [Nx generators on the docs](https://nx.dev/plugin-features/use-code-generators).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Running tasks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To execute tasks with Nx use the following syntax:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Backend
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
|
|
cd apps
|
|
|
|
```
|
|
|
|
```
|
|
|
|
nx <target> <project> <...options>
|
|
|
|
```bash
|
|
|
|
|
|
|
|
sudo docker-compose up -d
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
### Frontend
|
|
|
|
You can also run multiple targets:
|
|
|
|
```bash
|
|
|
|
|
|
|
|
npm i -g nx
|
|
|
|
```
|
|
|
|
```
|
|
|
|
nx run-many -t <target1> <target2>
|
|
|
|
```bash
|
|
|
|
|
|
|
|
nx run crud:serve:development --host=0.0.0.0
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
..or add `-p` to filter specific projects
|
|
|
|
### Model
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
|
|
cd yolo-websocket
|
|
|
|
```
|
|
|
|
```
|
|
|
|
nx run-many -t <target1> <target2> -p <proj1> <proj2>
|
|
|
|
```bash
|
|
|
|
|
|
|
|
git checkout master
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
|
|
sudo docker-compose up -d
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Targets can be defined in the `package.json` or `projects.json`. Learn more [in the docs](https://nx.dev/core-features/run-tasks).
|
|
|
|
#### Альтернативный запуска (не рекомендуем)
|
|
|
|
|
|
|
|
```bash
|
|
|
|
## Want better Editor Integration?
|
|
|
|
nx run-many -t py-categories-service py-conveyor-service crud
|
|
|
|
|
|
|
|
```
|
|
|
|
Have a look at the [Nx Console extensions](https://nx.dev/nx-console). It provides autocomplete support, a UI for exploring and running tasks & generators, and more! Available for VSCode, IntelliJ and comes with a LSP for Vim users.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Ready to deploy?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Just run `nx build demoapp` to build the application. The build artifacts will be stored in the `dist/` directory, ready to be deployed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Set up CI!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nx comes with local caching already built-in (check your `nx.json`). On CI you might want to go a step further.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- [Set up remote caching](https://nx.dev/core-features/share-your-cache)
|
|
|
|
После запуска приложение будет доступно на http://localhost:4200
|
|
|
|
- [Set up task distribution across multiple machines](https://nx.dev/core-features/distribute-task-execution)
|
|
|
|
|
|
|
|
- [Learn more how to setup CI](https://nx.dev/recipes/ci)
|
|
|
|
| Name | Source | Deploy URL | Hosted URL |
|
|
|
|
|
|
|
|
|:-------:|:------------------------------------------------------------------------------------------------:| :---: |:-------------------------------|
|
|
|
|
|
|
|
|
| WEB | [crud](https://github.com/perm-hack/perm-hack/tree/main/apps/crud) | http://localhost:4200 | https://ayin.k-lab.su |
|
|
|
|
|
|
|
|
| Backend | [py-conveyor-service](https://github.com/perm-hack/perm-hack/tree/main/apps/py-conveyor-service) | http://localhost:4200/api/docs | https://ayin.k-lab.su/api/docs |
|
|
|
|
|
|
|
|
| Model | [yolo-websocket](https://github.com/95862888/yolo-websocket/tree/master) | | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Архитектура
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```mermaid
|
|
|
|
|
|
|
|
graph TD;
|
|
|
|
|
|
|
|
agw-e2w-->agw;
|
|
|
|
|
|
|
|
crud-e2e-->crud;
|
|
|
|
|
|
|
|
crud-->agw;
|
|
|
|
|
|
|
|
agw-->py-categories-service;
|
|
|
|
|
|
|
|
agw-->py-conveyor-service;
|
|
|
|
|
|
|
|
py-conveyor-service-->db;
|
|
|
|
|
|
|
|
page-->crud;
|
|
|
|
|
|
|
|
ui-->page;
|
|
|
|
|
|
|
|
yolo-websocket-->ui;
|
|
|
|
|
|
|
|
yolo-websocket-->py-conveyor-service;
|
|
|
|
|
|
|
|
yolo-websocket-->ml-flow;
|
|
|
|
|
|
|
|
ml-flow-->s3;
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Connect with us!
|
|
|
|
ML-Flow & s3 развернуты в локальной сети.
|
|
|
|
|
|
|
|
|
|
|
|
- [Join the community](https://nx.dev/community)
|
|
|
|
![dataset.jpg](__assets__%2Fdataset.jpg)
|
|
|
|
- [Subscribe to the Nx Youtube Channel](https://www.youtube.com/@nxdevtools)
|
|
|
|
![model_v4.jpg](__assets__%2Fmodel_v4.jpg)
|
|
|
|
- [Follow us on Twitter](https://twitter.com/nxdevtools)
|
|
|
|
|
|
|
|