A Prometheus Python client library for asyncio-based applications

aioprometheus aioprometheus is a Prometheus Python client library for asyncio-based applications. It provides metrics collection and serving capabilities, supports multiple data formats and pushing metrics to a gateway. The project documentation can be found on ReadTheDocs. Install $ pip install aioprometheus A Prometheus Push Gateway client and ASGI service are also included, but their dependencies are not installed by default. You can install them alongside aioprometheus by running: $ pip install aioprometheus[aiohttp] Prometheus 2.0 removed support for the binary protocol, […]

Read more

A free, online learning platform to make quality education accessible for all

Oppia Oppia is an online learning tool that enables anyone to easily create and share interactive activities (called ‘explorations’). These activities simulate a one-on-one conversation with a tutor, making it possible for students to learn by doing while getting feedback. In addition to developing the Oppia platform, the team is also developing and piloting a set of free and effective lessons on basic mathematics. These lessons are targeted at learners who lack access to educational resources. Oppia is written using […]

Read more

Flask-Rebar combines flask, marshmallow, and swagger for robust REST services

Flask-Rebar Flask-Rebar combines flask, marshmallow, and swagger for robust REST services. Features Request and Response Validation – Flask-Rebar relies on schemas from the popular Marshmallow package to validate incoming requests and marshal outgoing responses. Automatic Swagger Generation – The same schemas used for validation and marshaling are used to automatically generate OpenAPI specifications (a.k.a. Swagger). This also means automatic documentation via Swagger UI. Error Handling – Uncaught exceptions from Flask-Rebar are converted to appropriate HTTP errors. Example from flask import […]

Read more

High-Performance Large-Scale Image Recognition Without Normalization

NFNet Pytorch Implementation This repo contains pretrained NFNet models F0-F6 with high ImageNet accuracy from the paper High-Performance Large-Scale Image Recognition Without Normalization. The small models are as accurate as an EfficientNet-B7, but train 8.7 times faster. The large models set a new SOTA top-1 accuracy on ImageNet. NFNet F0 F1 F2 F3 F4 F5 F6+SAM Top-1 accuracy Brock et al. 83.6 84.7 85.1 85.7 85.9 86.0 86.5 Top-1 accuracy this implementation 82.82 84.63 84.90 85.46 85.66 85.62 TBD All […]

Read more

Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers

SETR – Pytorch Since the original paper (Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers.) has no official code,I implemented SETR-Progressive UPsampling(SETR-PUP) using pytorch. Original paper: Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers. Vit The Vit model is also implemented, and you can use it for image classification. Usage SETR from SETR.transformer_seg import SETRModel import torch if __name__ == “__main__”: net = SETRModel(patch_size=(32, 32), in_channels=3, out_channels=1, hidden_size=1024, num_hidden_layers=8, num_attention_heads=16, decode_features=[512, 256, 128, 64]) t1 = torch.rand(1, 3, […]

Read more

Python SDK for the Buycoins API

Buycoins Python Library This library provides easy access to the Buycoins API using the Python programming language. It provides all the feature of the API so that you don’t need to interact with the API directly. This library can be used with Python 3.6+ Installation You can install this package using pip: pip install –upgrade buycoins Introduction Primer The library is structured around the concept of a type, so everything is a type. All date quantities are specified as timestamps. […]

Read more

Graphical tool to make photo collage posters in python

PhotoCollage Graphical tool to make photo collage posters PhotoCollage allows you to create photo collage posters. It assembles the input photographs it is given to generate a big poster. Photos are automatically arranged to fill the whole poster, then you can change the final layout, dimensions, border or swap photos in the generated grid. Eventually the final poster image can be saved in any size. The algorithm generates random layouts that place photos while taking advantage of all free space. […]

Read more

StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery

StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery (ICCV 2021 Oral) StyleCLIP: Text-Driven Manipulation of StyleGAN ImageryOr Patashnik*, Zongze Wu*, Eli Shechtman, Daniel Cohen-Or, Dani Lischinski*Equal contribution, ordered alphabeticallyhttps://arxiv.org/abs/2103.17249 Abstract: Inspired by the ability of StyleGAN to generate highly realistic images in a variety of domains, much recent work has focused on understanding how to use the latent spaces of StyleGAN to manipulate generated and real images. However, discovering semantically meaningful latent manipulations typically involves painstaking human examination of the many degrees […]

Read more

Python library that converts the output of popular command-line tools and file-types to JSON or Dictionaries

jc CLI tool and python library that converts the output of popular command-line tools and file-types to JSON or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts. JSON CLI output utility jc JSONifies the output of many CLI tools and file-types for easier parsing in scripts. See the Parsers section for supported commands and file-types. dig example.com | jc –dig [{“id”:38052,”opcode”:”QUERY”,”status”:”NOERROR”,”flags”:[“qr”,”rd”,”ra”],”query_num”:1,”answer_num”:1, “authority_num”:0,”additional_num”:1,”opt_pseudosection”:{“edns”:{“version”:0,”flags”:[],”udp”:4096}},”question”: {“name”:”example.com.”,”class”:”IN”,”type”:”A”},”answer”:[{“name”:”example.com.”,”class”:”IN”,”type”:”A”,”ttl”: 39049,”data”:”93.184.216.34″}],”query_time”:49,”server”:”2600:1700:bab0:d40::1#53(2600:1700:bab0:d40::1)”,”when”: “Fri Apr 16 16:09:00 PDT 2021″,”rcvd”:56,”when_epoch”:1618614540,”when_epoch_utc”:null}] This allows further command-line […]

Read more

A Flask extension for preventing cross-site request forgery

Flask-SeaSurf SeaSurf is a Flask extension for preventing cross-site request forgery (CSRF). CSRF vulnerabilities have been found in large and popular sites such as YouTube. These attacks are problematic because the mechanism they use is relatively easy to exploit. This extension attempts to aid you in securing your application from such attacks. This extension is based on the excellent Django middleware. Installation Install the extension with one of the following commands: $ easy_install flask-seasurf or alternatively if you have pip […]

Read more
1 20 21 22 23 24 51