inferno是一个小库,提供pytorch周围的实用程序和方便的函数/类。
inferno-pytorch的Python项目详细描述
===
推断
=
图片::https://img.shields.io/pypi/v/inferno.svg
:目标:https://pypi.python.org/pypi/pytorch inferno
…图片::https://img.shields.io/travis/nasimrahaman/inferno.svg
:目标:https://travis ci.org/nasimrahaman/inferno
…图片::https://readthedocs.org/projects/inferno-pytorch/badge/?version=latest
:目标:http://inferno-pytorch.readthedocs.io/en/latest/?徽章=最新
:alt:文档状态
…图片::https://pyup.io/repos/github/nasimrahaman/inferno/shield.svg
:目标:https://pyup.io/repos/github/nasimrahaman/inferno/
:alt:updates
图片::http://svgshare.com/i/2j7.svg
`pytorch<;https://github.com/pytorch/pytorch>;`。
这是一项正在进行的工作,但第一次发布正在进行中!
*免费软件:apache软件许可证2.0
*文档:https://pytorch-inferno.readthedocs.io(正在工作)。
功能
--
当前功能包括:
*a basic
`trainer class<;https://github.com/nasimrahaman/inferno/tree/master/docs preparing the trainer>;`
封装训练模板(迭代/epoch循环、验证和检查点创建),
*a`图形api<;https://github.com/nasimrahaman/inferno/blob/master/inferno/extensions/containers/graph.py>;``用于构建具有复杂体系结构的模型,由'networkx<;https://github.com/networkx/networkx>;``提供支持。
*`简单数据并行<;https://github.com/nasimrahaman/inferno/tree/master/docs在多个GPU上使用GPU>;`,
*`子模块<;https://github.com/nasimrahaman/inferno/blob/master/inferno/extensions/initializers>;`对于"torch.nn.module"级别的参数初始化,
*`a submodule<;https://github.com/nasimrahaman/inferno/blob/master/inferno/io/transform>;``对于数据预处理/转换,
*`support<;https://github.com/nasimrahaman/inferno/tree/master/docs使用tensorboard>;`用于"tensorboard"<;https://www.tensorflow.org/get_u started/summaries_和tensorboard>;`(最适合使用"tensorflow cpu"<;https://github.com/tensorflow/tensorflow>;`已安装)
*`回调API<;https://github.com/nasimrahaman/inferno/tree/master/docs;设置回调>;``以实现与培训师的灵活交互,
*`各种实用程序层<;https://github.com/nasimrahaman/inferno/tree/master/inferno/extensions/layers>;'`_随着更多工作的进行,体积数据集的子模块https://github.com/nasimrahaman/inferno/blob/master/inferno/io/volumative>;``等等!
…代码::python
import torch.nn as nn
从inferno.io.box.cifar10 import从inferno.trainers.basic import trainer
从inferno.trainers.callbacks.logging.tensorboard import tensorboardlogger
从inferno.extensions.layers.confolutional importconverlu2d
来自inferno.extensions.layers.respeme import flatten
=nn.顺序(
converlu2d(in_channels=3,out_channels=256,kernel_size=3),
nn.maxpool2d(kernel_size=2,stride=2),
converlu2d(in_channels=256,out_channels=256,kernel_size=3),
nn.maxpool2d(kernel_size=2,stride=2),
converlu2d(in_channels=256,输出通道=256,内核大小=3),
nn.maxpool2d(内核大小=2,步幅=2),
展平(),
nn.linear(输入功能=(256*4*4),输出功能=10),
nn.softmax()
)
装载机
训练装载机,验证装载机=获取CIFAR10装载机(数据集目录,
下载=下载CIFAR)
.build_metric('categoricalerror')\
。build_optimizer('adam')\
。validate_every((2,'epochs'))\
。save_every((5,'epochs')\
。save_to_directory(save_directory)\
。set_max_num epochs(10)\
。build_logger(tensorboardlogger(logu scalars)every=(1,'迭代',
log_images_every='never'),
log_directory=log_directory)
bind loaders
trainer\
.bind_loader('train',train_loader)\
.bind_loader('validate',验证加载程序)
如果使用cuda:
trainer.cuda()
trainer.fit()
代码::bash
$tensorboard--logdir=${pwd}--port=6007
并使用浏览器导航到"localhost:6007"。
未来的功能:
-
计划的功能包括:
*一个封装hogwild的类!在多个GPU上进行培训,
*通过试运行实现最小形状推断,
*正确的包装和文档,
*对未来产品的新闻实现进行前沿更新。:)
credits
——
此处列出了所有参与者。
…_这里是:https://pytorch inferno.readthedocs.io/en/latest/authors.html
…_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` audreyr/cookiecutter pypackage`:https://github.com/audreyr/cookiecutter pypackage
==
=
=
==
=
<0.1.0(2017-08-24)
----
*pypi的第一个早期版本
0.1.1(2017-08-24)
----
*版本增量
0.1.2(2017-08-24)
----
*版本增量
>0.1.3(2017-08-24)
----
*更新文档
>0.1.4(2017-08-24)
----
*在PYPI上的Travis自动部署
<0.1.5(2017-08-24)travis更改为运行unittest安装过程中的关键bugix
推断
=
图片::https://img.shields.io/pypi/v/inferno.svg
:目标:https://pypi.python.org/pypi/pytorch inferno
…图片::https://img.shields.io/travis/nasimrahaman/inferno.svg
:目标:https://travis ci.org/nasimrahaman/inferno
…图片::https://readthedocs.org/projects/inferno-pytorch/badge/?version=latest
:目标:http://inferno-pytorch.readthedocs.io/en/latest/?徽章=最新
:alt:文档状态
…图片::https://pyup.io/repos/github/nasimrahaman/inferno/shield.svg
:目标:https://pyup.io/repos/github/nasimrahaman/inferno/
:alt:updates
图片::http://svgshare.com/i/2j7.svg
这是一项正在进行的工作,但第一次发布正在进行中!
*免费软件:apache软件许可证2.0
*文档:https://pytorch-inferno.readthedocs.io(正在工作)。
功能
--
当前功能包括:
*a basic
`trainer class<;https://github.com/nasimrahaman/inferno/tree/master/docs preparing the trainer>;`
封装训练模板(迭代/epoch循环、验证和检查点创建),
*a`图形api<;https://github.com/nasimrahaman/inferno/blob/master/inferno/extensions/containers/graph.py>;``用于构建具有复杂体系结构的模型,由'networkx<;https://github.com/networkx/networkx>;``提供支持。
*`简单数据并行<;https://github.com/nasimrahaman/inferno/tree/master/docs在多个GPU上使用GPU>;`,
*`子模块<;https://github.com/nasimrahaman/inferno/blob/master/inferno/extensions/initializers>;`对于"torch.nn.module"级别的参数初始化,
*`a submodule<;https://github.com/nasimrahaman/inferno/blob/master/inferno/io/transform>;``对于数据预处理/转换,
*`support<;https://github.com/nasimrahaman/inferno/tree/master/docs使用tensorboard>;`用于"tensorboard"<;https://www.tensorflow.org/get_u started/summaries_和tensorboard>;`(最适合使用"tensorflow cpu"<;https://github.com/tensorflow/tensorflow>;`已安装)
*`回调API<;https://github.com/nasimrahaman/inferno/tree/master/docs;设置回调>;``以实现与培训师的灵活交互,
*`各种实用程序层<;https://github.com/nasimrahaman/inferno/tree/master/inferno/extensions/layers>;'`_随着更多工作的进行,体积数据集的子模块https://github.com/nasimrahaman/inferno/blob/master/inferno/io/volumative>;``等等!
…代码::python
import torch.nn as nn
从inferno.io.box.cifar10 import从inferno.trainers.basic import trainer
从inferno.trainers.callbacks.logging.tensorboard import tensorboardlogger
从inferno.extensions.layers.confolutional importconverlu2d
来自inferno.extensions.layers.respeme import flatten
=nn.顺序(
converlu2d(in_channels=3,out_channels=256,kernel_size=3),
nn.maxpool2d(kernel_size=2,stride=2),
converlu2d(in_channels=256,out_channels=256,kernel_size=3),
nn.maxpool2d(kernel_size=2,stride=2),
converlu2d(in_channels=256,输出通道=256,内核大小=3),
nn.maxpool2d(内核大小=2,步幅=2),
展平(),
nn.linear(输入功能=(256*4*4),输出功能=10),
nn.softmax()
)
装载机
训练装载机,验证装载机=获取CIFAR10装载机(数据集目录,
下载=下载CIFAR)
.build_metric('categoricalerror')\
。build_optimizer('adam')\
。validate_every((2,'epochs'))\
。save_every((5,'epochs')\
。save_to_directory(save_directory)\
。set_max_num epochs(10)\
。build_logger(tensorboardlogger(logu scalars)every=(1,'迭代',
log_images_every='never'),
log_directory=log_directory)
bind loaders
trainer\
.bind_loader('train',train_loader)\
.bind_loader('validate',验证加载程序)
如果使用cuda:
trainer.cuda()
trainer.fit()
代码::bash
$tensorboard--logdir=${pwd}--port=6007
并使用浏览器导航到"localhost:6007"。
未来的功能:
-
计划的功能包括:
*一个封装hogwild的类!在多个GPU上进行培训,
*通过试运行实现最小形状推断,
*正确的包装和文档,
*对未来产品的新闻实现进行前沿更新。:)
credits
——
此处列出了所有参与者。
…_这里是:https://pytorch inferno.readthedocs.io/en/latest/authors.html
…_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` audreyr/cookiecutter pypackage`:https://github.com/audreyr/cookiecutter pypackage
==
=
=
==
=
<0.1.0(2017-08-24)
----
*pypi的第一个早期版本
0.1.1(2017-08-24)
----
*版本增量
0.1.2(2017-08-24)
----
*版本增量
>0.1.3(2017-08-24)
----
*更新文档
>0.1.4(2017-08-24)
----
*在PYPI上的Travis自动部署
<0.1.5(2017-08-24)travis更改为运行unittest安装过程中的关键bugix