{"id":19380080,"url":"https://github.com/isosnovik/nets","last_synced_at":"2025-04-23T19:33:19.763Z","repository":{"id":118737781,"uuid":"77396841","full_name":"ISosnovik/nets","owner":"ISosnovik","description":"Draw your net","archived":false,"fork":false,"pushed_at":"2017-09-01T19:22:40.000Z","size":58,"stargazers_count":48,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-04T03:11:09.519Z","etag":null,"topics":["architecture","deep-learning","draw","keras","neural-network","segmentation","visualization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ISosnovik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-12-26T17:05:46.000Z","updated_at":"2024-01-04T16:10:04.000Z","dependencies_parsed_at":"2023-05-11T19:30:45.168Z","dependency_job_id":null,"html_url":"https://github.com/ISosnovik/nets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ISosnovik%2Fnets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ISosnovik%2Fnets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ISosnovik%2Fnets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ISosnovik%2Fnets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ISosnovik","download_url":"https://codeload.github.com/ISosnovik/nets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223932086,"owners_count":17227277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["architecture","deep-learning","draw","keras","neural-network","segmentation","visualization"],"created_at":"2024-11-10T09:12:17.578Z","updated_at":"2024-11-10T09:12:18.237Z","avatar_url":"https://github.com/ISosnovik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nets\nIt is an easy-to-use framework for drawing your favorite network's architecture.\nIt is inspired by the juicy schemas from [SegNet](http://mi.eng.cam.ac.uk/projects/segnet/)\n\n## Usage\nThe API is close to this of [Keras](https://keras.io/getting-started/sequential-model-guide/)\n\nYou don't have to think about filter size, strides and activation function. It is all about shapes, colors and fonts.\n\n```python\nfrom nets.PlaneLayer import *\nfrom nets.neural_net import NN\n\nnn = NN()\n\n# Encoder\nnn.add(Conv2D())\nnn.add(Conv2D())\nnn.add(Pooling(pool_size=2))\n\nnn.add(Conv2D())\nnn.add(Conv2D())\nnn.add(Pooling(pool_size=2))\n\nnn.add(Conv2D())\nnn.add(Conv2D())\nnn.add(Conv2D())\nnn.add(Pooling(pool_size=2))\n\n# Decoder\nnn.add(Upsampling(factor=2))\nnn.add(Conv2D())\nnn.add(Conv2D())\nnn.add(Conv2D())\n\nnn.add(Upsampling(factor=2))\nnn.add(Conv2D())\nnn.add(Conv2D())\n\nnn.add(Upsampling(factor=2))\nnn.add(Conv2D())\nnn.add(Conv2D())\n\nnn.add(Conv2D())\n```\n\nTo draw the net, the architecture should be processed\n\n```python\nnn.compile()\nnn.add_legend(bbox_to_anchor=(0.2, -0.1, 0.6, 0.1), fontsize=26)\nnn.draw()\n```\n\nPretty simple. That's it\n\n![img](src/net.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisosnovik%2Fnets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisosnovik%2Fnets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisosnovik%2Fnets/lists"}