三维旋转、平移和镜像E(3)群的等变卷积神经网络。

e3nn的Python项目详细描述


e3nn公司

Coverage Status

E(3)是维度3中的Euclidean group。这是一组旋转,平移和镜像。 e3nn是一个pytorch库,旨在创建E3)等变neural^{str1}$n网络。在

安装

安装pytorch_geometric后,运行命令:

pip install e3nn

要获取CUDA内核,请阅读INSTALL.md中的说明。在

示例

fromfunctoolsimportpartialimporttorchfrome3nnimportKernel,rsfrome3nn.non_linearities.normimportNormfrome3nn.non_linearities.rescaled_actimportswishfrome3nn.point.operationsimportConvolutionfrome3nn.radialimportGaussianRadialModel# Define the input and output representationsRs_in=[(1,0),(2,1)]# Input = One scalar plus two vectorsRs_out=[(1,1)]# Output = One single vector# Radial model:  R+ -> R^dRadialModel=partial(GaussianRadialModel,max_radius=3.0,number_of_basis=3,h=100,L=1,act=swish)# kernel: composed on a radial part that contains the learned parameters#  and an angular part given by the spherical hamonics and the Clebsch-Gordan coefficientsK=partial(Kernel,RadialModel=RadialModel)# Create the convolution moduleconv=Convolution(K(Rs_in,Rs_out))# Module to compute the norm of each irreducible componentnorm=Norm(Rs_out)n=5# number of input pointsfeatures=rs.randn(1,n,Rs_in,requires_grad=True)in_geometry=torch.randn(1,n,3)out_geometry=torch.zeros(1,1,3)# One point at the originout=norm(conv(features,in_geometry,out_geometry))out.backward()print(out)print(features.grad)

等级制度

  • e3nn包含库
    • e3nn/o3.pyO(3)不可约表示
    • e3nn/rsh.py实球谐函数
    • e3nn/rs.py几何张量表示
    • e3nn/image包含体素的线性运算
    • e3nn/point包含点的线性运算
    • e3nn/non_linearities非线性操作
  • examples简单的脚本和实验

引用

DOI

^{pr2}$

版权

欧几里得神经网络(e3nn)版权所有(c)2020 加州大学,通过劳伦斯伯克利国家实验室 (以收到美国能源部要求的任何批准为准), 洛桑联邦理工学院(EPFL),柏林自由大学 还有克什蒂安·拉契夫斯基。版权所有。在

如果您对使用或分发本软件的权利有疑问, 请联系伯克利实验室的知识产权办公室 IPO@lbl.gov。在

注意。这个软件是在美国国务院的资助下开发的 因此,美国政府保留了某些权利。作为 这样,美国政府就被允许为自己和其他国家采取行动 其代表的是一份已付清的、非排他性的、不可撤销的全球许可证 复制软件,向公众分发副本,准备衍生产品 公开工作,公开表演,公开展示,并允许他人这样做。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Jsonify使用Jackson来定义嵌套对象   在Swing中禁用java图形调试   java Selenium Webdriver拖放在Jenkins上不起作用   java我对一个显示器的问题有一个非常不切实际的询问   java增强的“for”循环导致ArrayIndexOutOfBoundsException   ArrayAdapter适用于Java中的安卓编程,字符串数组   linux在Ubuntu上通过PulseAudio播放Java音频文件时出错   java在Spring应用程序中加载内部(类路径)和外部属性文件   java使用Maven连接到mySQL   Java应用程序的设计   websocket在电报api java中与dc的连接   java XMLStreamException,因为xml中的(&N)   java从控制台输出到JTextArea   Java导出文本文件   java实现parseInt方法   java为什么servlet容器会同步对特定资源/servlet的多个请求的访问?   循环中的Java“while”变量   用Java编程一个国际象棋游戏,gameOver布尔不起作用   java如何获得真正的JPanel大小?