An experimental Fang Song style Chinese font generated with skeleton-tracing and pix2pix

An experimental Fang Song style Chinese font generated with skeleton-tracing and pix2pix, with glyphs based on cwTeXFangSong. The font is optimised for vertical typesetting. Below is a sample: The font contains roughly 13,000 glyphs, mostly for traditional Chinese. I created the font for one of my own projects. The font is admittedly not perfect, but nevertheless have many ineteresting features; therefore I am sharing the font file and programs used to generate it. Download the font directly at dist/tkFangSong.ttf. The […]

Read more

Variational Attention: Propagating Domain-Specific Knowledge for Multi-Domain Learning in Crowd Counting

ICCV 2021 Variational Attention: Propagating Domain-Specific Knowledge for Multi-Domain Learning in Crowd Counting Baseline of DKPNet is available. Currently, only code of DKPNet-baseline is released. In fact, MSE in our paper is equivalent to RMSE in academic papers. Please use the word RMSE instead of MSE when refering to the corresponding numerical values in our paper. We are sorry for the mistake and can do nothing to corret it after the camera-ready version deadline. Download the datasets ShanghaiTech A, ShanghaiTech […]

Read more

Asyncio client for Deta Cloud in python

Unofficial client for Deta Clound Install Supported functionality Deta Base Deta Drive Decorator for cron tasks Examples import asyncio from aiodeta import Deta DETA_PROJECT_KEY = “xxx_yyy” async def go(): db_name = “users” # Initialize Deta client deta = Deta(DETA_PROJECT_KEY) # Initialize Deta Base client base = deta.Base(db_name)

Read more

Home Assistant integration for energy consumption data from UK SMETS (Smart) meters using the Hildebrand Glow API

Home Assistant integration for energy consumption data from UK SMETS (Smart) meters using the Hildebrand Glow API. This integration works without requiring a consumer device provided by Hildebrand Glow and can work with your existing smart meter. You’ll need to set up your smart meter for free in the Bright app on Android or iOS. This will only work when using the Data Communications Company (DCC) backend, which all SMETS 2 meters and some SMETS 1 meters do (more information). […]

Read more

Deploy a STAC API and a dynamic mosaic tiler API using AWS CDK

Earth Observation API Deploy a STAC API and a dynamic mosaic tiler API using AWS CDK. Source Code: https://github.com/developmentseed/eoAPI Deployment The stack is deployed by the AWS CDK utility. Under the hood, CDK will create the deployment packages required for AWS Lambda, upload it to AWS, and handle the creation of the Lambda and API Gateway resources. Install CDK and connect to your AWS account. This step is only necessary once per AWS account.

Read more

A github template to start a Flask Project

A full feature Flask project template. See also Python-Project-Template for a lean, low dependency Python app. HOW TO USE THIS TEMPLATE DO NOT FORK this is meant to be used from Use this template feature. Click on Use this template Give a name to your project(e.g. my_awesome_project recommendation is to use all lowercase and underscores separation for repo names.) Wait until the first run of CI finishes(Github Actions will process the template and commit to your new repo) If you […]

Read more

A Python library and command line interface for training deep neural networks from biological sequence data such as genomes

Selene is a Python library and command line interface for training deep neural networks from biological sequence data such as genomes. Please see our release notes for the latest updates to Selene. Installation We recommend using Selene with Python 3.6 or above. Package installation should only take a few minutes (less than 10 minutes, typically ~2-3 minutes) with any of these methods (conda, pip, source). First, install PyTorch. If you have an NVIDIA GPU, install a version of PyTorch that […]

Read more

A Web scraping library and command-line tool for text discovery and extraction

Description Trafilatura is a Python package and command-line tool which seamlessly downloads, parses, and scrapes web page data: it can extract metadata, main body text and comments while preserving parts of the text formatting and page structure. The output can be converted to different formats. Distinguishing between a whole page and the page’s essential parts can help to alleviate many quality problems related to web text processing, by dealing with    

Read more

Python News: What’s New From August 2021?

Summer holidays have ended, and it’s back to school again. While it was a time of leisure and getting disconnected from the virtual world for many of us, the Python maintainers and contributors have been busy working during that same period. Just in August 2021, the Python community saw three new Python releases, bringing some important security fixes, optimizations, and brand-new features. Let’s dive into the biggest Python news from the past month! Python 3.10 Is Almost Ready On August […]

Read more
1 502 503 504 505 506 973