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

Embed to Control implementation in PyTorch

e2c-pytorch Paper can be found here: https://arxiv.org/abs/1506.07365 You will need a patched version of OpenAI Gym in order to generate the dataset. See https://github.com/ethanluoyc/gym/tree/pendulum_internal For the planar task, we use code from. The source code of the repository has been modified for our needs and included under e2c/e2c_tf. What’s included ? E2C model, VAE and AE baselines. Allow configuration for different network architecture for the different setups (see Appendix of the paper). TODO Documentation, tests… (Soon to follow) GitHub https://github.com/ethanluoyc/e2c-pytorch […]

Read more

PyTorch implementation of Advantage Actor Critic

pytorch-a2c-ppo-acktr PyTorch implementation of Advantage Actor Critic (A2C), Proximal Policy Optimization (PPO), Scalable trust-region method for deep reinforcement learning using Kronecker-factored approximation (ACKTR) and Generative Adversarial Imitation Learning (GAIL). Please use hyper parameters from this readme. With other hyper parameters things might not work (it’s RL after all)! This is a PyTorch implementation of Advantage Actor Critic (A2C), a synchronous deterministic version of A3C Proximal Policy Optimization PPO Scalable trust-region method for deep reinforcement learning using Kronecker-factored approximation ACKTR Generative […]

Read more

TOOD: Task-aligned One-stage Object Detection

TOOD TOOD: Task-aligned One-stage Object Detection (ICCV 2021 Oral) One-stage object detection is commonly implemented by optimizing two sub-tasks: object classification and localization, using heads with two parallel branches, which might lead to a certain level of spatial misalignment in predictions between the two tasks. In this work, we propose a Task-aligned One-stage Object Detection (TOOD) that explicitly aligns the two tasks in a learning-based manner. First, we design a novel Task-aligned Head (T-Head) which offers a better balance between […]

Read more

OpenQuake’s Engine for Seismic Hazard and Risk Analysis

OpenQuake Engine The OpenQuake Engine is an open source application that allows users to compute seismic hazard and seismic risk of earthquakes on a global scale. It runs on Linux, macOS and Windows, on laptops, workstations, standalone servers and multi-node clusters. DOI: 10.13117/openquake.engine Current stable Current stable version is the OpenQuake Engine 3.11 ‘Wegener’. The documentation is available at https://github.com/gem/oq-engine/tree/engine-3.11#openquake-engine. GitHub https://github.com/gem/oq-engine    

Read more

A fast, easy to set up telegram userbot running Python 3

A fast, easy to set up telegram userbot running Python 3 which uses fork ofthe Telethon Library. Friendly Telegram, also known as FTG, is not your average Telegram userbot: it’s faster, can load modules dynamicallyand is very easy to use! Changes Latest Telethon lib Security improvements (.session file name not contain full phone number, DeleteAccountRequest disabled, and more) UX improvements (IP address in config script, random port on first launch, etc) Stock modules updates (New functions, bug fixed) Modules Repo […]

Read more
1 511 512 513 514 515 939