<!--- ---> <!--- ) ---> <!--- ---> <!--- <!--- ---> Please click TensorLayerX 🔥🔥🔥 TensorLayer is a novel TensorFlow-based deep learning and reinforcement learning library designed for researchers and engineers.…
<!---  --->
<!--- !PyPI - Python Version) --->
!GitHub last commit (branch)







<!---  --->
<!--- 
<!---  --->
Please click TensorLayerX 🔥🔥🔥
TensorLayer is a novel TensorFlow-based deep learning and reinforcement learning library designed for researchers and engineers. It provides an extensive collection of customizable neural layers to build advanced AI models quickly, based on this, the community open-sourced mass tutorials and applications. TensorLayer is awarded the 2017 Best Open Source Software by the ACM Multimedia Society.
This project can also be found at OpenI and Gitee.
News
- 🔥 TensorLayerX is a Unified Deep Learning and Reinforcement Learning Framework for All Hardwares, Backends and OS. The current version supports TensorFlow, Pytorch, MindSpore, PaddlePaddle, OneFlow and Jittor as the backends, allowing users to run the code on different hardware like Nvidia-GPU and Huawei-Ascend.
- TensorLayer is now in OpenI
- Reinforcement Learning Zoo: Low-level APIs for professional usage, High-level APIs for simple usage, and a corresponding Springer textbook
- Sipeed Maxi-EMC: Run TensorLayer models on the low-cost AI chip (e.g., K210) (Alpha Version)
Design Features
TensorLayer is a new deep learning library designed with simplicity, flexibility and high-performance in mind.
- *Simplicity* : TensorLayer has a high-level layer/model abstraction which is effortless to learn. You can learn how deep learning can benefit your AI tasks in minutes through the massive examples.
- *Flexibility* : TensorLayer APIs are transparent and flexible, inspired by the emerging PyTorch library. Compared to the Keras abstraction, TensorLayer makes it much easier to build and train complex AI models.
- *Zero-cost Abstraction* : Though simple to use, TensorLayer does not require you to make any compromise in the performance of TensorFlow (Check the following benchmark section for more details).
Multilingual Documents
TensorLayer has extensive documentation for both beginners and professionals. The documentation is available in
both English and Chinese.



If you want to try the experimental features on the the master branch, you can find the latest document
here.
Extensive Examples
You can find a large collection of examples that use TensorLayer in [here](examples/) and the following space:
Getting Start
TensorLayer 2.0 relies on TensorFlow, numpy, and others. To use GPUs, CUDA and cuDNN are required.
Install TensorFlow:
bash
pip3 install tensorflow-gpu==2.0.0-rc1 # TensorFlow GPU (version 2.0 RC1)
pip3 install tensorflow # CPU version
Install the stable release of TensorLayer:
bash
pip3 install tensorlayer
Install the unstable development version of TensorLayer:
bash
pip3 install git+https://github.com/tensorlayer/tensorlayer.git
If you want to install the additional dependencies, you can also run
bash
pip3 install --upgrade tensorlayer[all] # all additional dependencies
pip3 install --upgrade tensorlayer[extra] # only the `extra` dependencies
pip3 install --upgrade tensorlayer[contrib_loggers] # only the `contrib_loggers` dependencies
If you are TensorFlow 1.X users, you can use TensorLayer 1.11.0:
bash
# For last stable version of TensorLayer 1.X
pip3 install --upgrade tensorlayer==1.11.0
<!---
Using Docker
The TensorLayer containers are built on top of the official TensorFlow containers:
Containers with CPU support
bash
# for CPU version and Python 2
docker pull tensorlayer/tensorlayer:latest
docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest
# for CPU version and Python 3
docker pull tensorlayer/tensorlayer:latest-py3
docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-py3
Containers with GPU support
NVIDIA-Docker is required for these containers to work: Project Link
bash
# for GPU version and Python 2
docker pull tensorlayer/tensorlayer:latest-gpu
nvidia-docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-gpu
# for GPU version and Python 3
docker pull tensorlayer/tensorlayer:latest-gpu-py3
nvidia-docker run -it --rm -p 8888:8888 -p 6006:6006 -e PASSWORD=JUPYTER_NB_PASSWORD tensorlayer/tensorlayer:latest-gpu-py3
--->
Performance Benchmark
The following table shows the training speeds of VGG16 using TensorLayer and native TensorFlow on a TITAN Xp.
| Mode | Lib | Data Format | Max GPU Memory Usage(MB) |Max CPU Memory Usage(MB) | Avg CPU Memory Usage(MB) | Runtime (sec) |
| :-------: | :-------------: | :-----------: | :-----------------: | :-----------------: | :-----------------: | :-----------: |
| AutoGraph | TensorFlow 2.0 | channel last | 11833 | 2161 | 2136 | 74 |
| | TensorLayer 2.0 | channel last | 11833 | 2187 | 2169 | 76 |
| Graph | Keras | channel last | 8677 | 2580 | 2576 | 101 |
| Eager | TensorFlow 2.0 | channel last | 8723 | 2052 | 2024 | 97 |
| | TensorLayer 2.0 | channel last | 8723 | 2010 | 2007 | 95 |
Getting Involved
Please read the [Contributor Guideline](CONTRIBUTING.md) before submitting your PRs.
We suggest users to report bugs using Github issues. Users can also discuss how to use TensorLayer in the following slack channel.
Citing TensorLayer
If you find TensorLayer useful for your project, please cite the following papers:
@article{tensorlayer2017,
author = {Dong, Hao and Supratak, Akara and Mai, Luo and Liu, Fangde and Oehmichen, Axel and Yu, Simiao and Guo, Yike},
journal = {ACM Multimedia},
title = {{TensorLayer: A Versatile Library for Efficient Deep Learning Development}},
url = {http://tensorlayer.org},
year = {2017}
}
@inproceedings{tensorlayer2021,
title={Tensorlayer 3.0: A Deep Learning Library Compatible With Multiple Backends},
author={Lai, Cheng and Han, Jiarong and Dong, Hao},
booktitle={2021 IEEE International Conference on Multimedia \& Expo Workshops (ICMEW)},
pages={1--3},
year={2021},
organization={IEEE}
}Members
-
TensorLayer ★ PINNED
Deep Learning and Reinforcement Learning Library for Scientists and Engineers
Python ★ 7.4k 3y agoExplain → -
TensorLayerX ★ PINNED
TensorLayerX: A Unified Deep Learning and Reinforcement Learning Framework for All Hardwares, Backends and OS.
Python ★ 530 6mo agoExplain → -
TLXZoo ★ PINNED
Pre-trained backbones for TensorLayerX
Python ★ 32 1y agoExplain → -
SRGAN ★ PINNED
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
Python ★ 3.5k 2y agoExplain → -
DCGAN ★ PINNED
The Simplest DCGAN Implementation
Python ★ 342 3y agoExplain → -
TLX2ONNX ★ PINNED
ONNX Model Exporter for TensorLayerX
Python ★ 22 3y agoExplain → -
HyperPose
Library for Fast and Flexible Human Pose Estimation
Python ★ 1.3k 3y agoExplain → -
seq2seq-chatbot
Chatbot in 200 lines of code using TensorLayer
Python ★ 837 4y agoExplain → -
RLzoo
A Comprehensive Reinforcement Learning Zoo for Simple Usage 🚀
Python ★ 640 3y agoExplain → -
text-antispam
商用级垃圾文本分类器
Python ★ 414 4y agoExplain → -
tensorlayer-chinese
TensorLayer 中文文档
★ 357 2y agoExplain → -
awesome-tensorlayer
A curated list of dedicated resources and applications
★ 267 6y agoExplain → -
DAGAN
The implementation code for "DAGAN: Deep De-Aliasing Generative Adversarial Networks for Fast Compressed Sensing MRI Reconstruction"
Python ★ 180 7y agoExplain → -
chinese-book
《深度学习:一起玩转TensorLayer》资源分享、讨论
★ 138 8y agoExplain → -
adaptive-style-transfer
Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization
Python ★ 114 4y agoExplain → -
pretrained-models
No description.
★ 79 4y agoExplain → -
HaoDong_aicourse2023_codes
No description.
Python ★ 24 3y agoExplain → -
cyclegan
CycleGAN in 300 lines of code
Python ★ 20 6y agoExplain → -
TLXCV
A Platform-agnostic Computer Vision Application Library
Python ★ 12 1y agoExplain → -
Paddle2TLX
Transfer PaddlePaddle's codes to TensorLayerX's codes
Python ★ 10 3y agoExplain → -
TLXNLP
A Platform-agnostic Natural Language Processing Application Library
Python ★ 3 1y agoExplain → -
arcface-tlx
No description.
★ 2 4y agoExplain → -
fMRI-deep-image-reconstruction
fMRI deep image reconstruction
Python ★ 2 8y agoExplain → -
benchmarks ⑂
Comparison of TensorFlow Wrappers
Python ★ 1 8y agoExplain → -
kubeflow ⑂
Machine Learning Toolkit for Kubernetes
Python ★ 1 8y agoExplain → -
ARKStatsExtractor ⑂
A tool for the game ARK: Survival Evolved. Extracts possible levelups of creatures to get the values for breeding. With library and pedigree-view.
★ 0 3y agoExplain → -
PPYOLOE_tlx
An unofficial implementation of TensorLayerX version PP-YOLOE.
★ 0 3y agoExplain → -
TLX-docs-ar
TensorlayerX Arabic documents
★ 0 4y agoExplain → -
TLX-docs-zh
TensorlayerX中文文档
★ 0 4y agoExplain →
No repos match these filters.