CvT: Introducing Convolutions to Vision Transformers

convolution-vision-transformers Pytorch implementation of CvT: Introducing Convolutions to Vision Transformers , for official repo please visit here. Usage: img = torch.ones([1, 3, 224, 224]) model = CvT(224, 3, 1000) parameters = filter(lambda p: p.requires_grad, model.parameters()) parameters = sum([np.prod(p.size()) for p in parameters]) / 1_000_000 print(‘Trainable Parameters: %.3fM’ % parameters) out = model(img) print(“Shape of out :”, out.shape) # [B, num_classes] Citation: @misc{wu2021cvt, title={CvT: Introducing Convolutions to Vision Transformers}, author={Haiping Wu and Bin Xiao and Noel Codella and Mengchen Liu and […]

Read more

Efficient Deep Neural Network Training via Cyclic Precision

CPT Yonggan Fu, Han Guo, Meng Li, Xin Yang, Yining Ding, Vikas Chandra, Yingyan Lin Accepted at ICLR 2021 (Spotlight) [Paper Link]. Overview Low-precision deep neural network (DNN) training has gained tremendous attention as reducing precision is one of the most effective knobs for boosting DNNs’ training time/energy efficiency. In this paper, we attempt to explore low-precision training from a new perspective as inspired by recent findings in understanding DNN training: we conjecture that DNNs’ precision might have a similar […]

Read more

Implementation of lightweight GAN proposed in ICLR 2021 in Pytorch

lightweight-gan 512×512 flowers after 12 hours of training, 1 gpu 256×256 flowers after 12 hours of training, 1 gpu Pizza ‘Lightweight’ GAN Implementation of ‘lightweight’ GAN proposed in ICLR 2021, in Pytorch. The main contributions of the paper is a skip-layer excitation in the generator, paired with autoencoding self-supervised learning in the discriminator. Quoting the one-line summary “converge on single gpu with few hours’ training, on 1024 resolution sub-hundred images”. Install $ pip install lightweight-gan Use One command $ lightweight_gan […]

Read more

All In One Tools For Cryptology in python

Written by TMRSWRRVersion 1.0.0All in one tools for CRYPTOLOGY. Screenshots 📹 How to use 📹 Click on the image… Features This tool include: :round_pushpin: HASH :round_pushpin: RSA :round_pushpin: XOR :round_pushpin: AES (ECC) :round_pushpin: AES (CBC) :round_pushpin: DES (ECB) :round_pushpin: FERNET :round_pushpin: RC2 :round_pushpin: RC4 :round_pushpin: CHACHA20POLY1305 :round_pushpin: TRANSPOSITION :round_pushpin: DIFFIE HELMAN :round_pushpin: IMAGE ENCRYPT/DECRYPT :round_pushpin: FILE ENCRYPT/DECRYPT 📀 Installation 📀 Installation with requirements.txt git clone https://github.com/capture0x/cypher cd cypher pip3 install -r requirements.txt Usage python3 cryptot.py HASH Encryption and decryption algorithms […]

Read more

A screaming-fast, scalable, asynchronous Python 3.5+ HTTP toolkit integrated

Japronto There is no new project development happening at the moment, but it’s not abandoned either. Pull requests and new maintainers are welcome. If you are a novice Python programmer, you don’t like plumbing yourself or you don’t have basic understanding of C, this project is not probably what you are looking for. Japronto (from Portuguese “já pronto” /ˈʒa pɾõtu/ meaning “already done”) is a screaming-fast, scalable, asynchronous Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop […]

Read more

Declaratively specify how to extract elements from a JSON document

JMESPath JMESPath (pronounced “james path”) allows you to declaratively specify how to extract elements from a JSON document. For example, given this document: {“foo”: {“bar”: “baz”}} The jmespath expression foo.bar will return “baz”. JMESPath also supports: Referencing elements in a list. Given the data: {“foo”: {“bar”: [“one”, “two”]}} The expression: foo.bar[0] will return “one”. You can also reference all the items in a list using the * syntax: {“foo”: {“bar”: [{“name”: “one”}, {“name”: “two”}]}} The expression: foo.bar[*].name will return [“one”, […]

Read more

A Python module for creating Excel XLSX files

XlsxWriter XlsxWriter is a Python module for writing files in the Excel 2007+ XLSX file format. XlsxWriter can be used to write text, numbers, formulas and hyperlinks to multiple worksheets and it supports features such as formatting and many more, including: 100% compatible Excel XLSX files. Full formatting. Merged cells. Defined names. Charts. Autofilters. Data validation and drop down lists. Conditional formatting. Worksheet PNG/JPEG/GIF/BMP/WMF/EMF images. Rich multi-format strings. Cell comments. Integration with Pandas. Textboxes. Support for adding Macros. Memory optimization […]

Read more

Exploring the Python math Module

In this course, you’ll learn all about Python’s math module. Mathematical calculations are an essential part of most Python development. Whether you’re working on a scientific project, a financial application, or any other type of programming endeavor, you just can’t escape the need for math. For straightforward mathematical calculations in Python, you can use the built-in mathematical operators, such as addition (+), subtraction (-), division (/), and multiplication (*). But more advanced operations, such as exponential, logarithmic, trigonometric, or power […]

Read more

PyTorch DepthNet Training on Still Box dataset

DepthNet training on Still Box This code can replicate the results of our paper that was published in UAVg-17.If you use this repo in your work, please cite us with the following bibtex : @Article{isprs-annals-IV-2-W3-67-2017, AUTHOR = {Pinard, C. and Chevalley, L. and Manzanera, A. and Filliat, D.}, TITLE = {END-TO-END DEPTH FROM MOTION WITH STABILIZED MONOCULAR VIDEOS}, JOURNAL = {ISPRS Annals of Photogrammetry, Remote Sensing and Spatial Information Sciences}, VOLUME = {IV-2/W3}, YEAR = {2017}, PAGES = {67–74}, URL […]

Read more

Enhanced Deep Residual Networks for Single Image Super-Resolution

EDSR-PyTorch PyTorch version of the paper ‘Enhanced Deep Residual Networks for Single Image Super-Resolution’ (CVPRW 2017) About PyTorch 1.1.0 There have been minor changes with the 1.1.0 update. Now we support PyTorch 1.1.0 by default, and please use the legacy branch if you prefer older version. This repository is an official PyTorch implementation of the paper “Enhanced Deep Residual Networks for Single Image Super-Resolution” from CVPRW 2017, 2nd NTIRE.You can find the original code and more information from here. If […]

Read more
1 11 12 13 14 15 51