An asynchronous python API wrapper meant to replace discord.py

Discord API wrapper rebuild from scratch. Links Join the discord server: https://discord.gg/8WkYz3fNFm The pypi package: https://pypi.org/project/Pincer/ Our website: https://pincer.dev Installation Use The following command to install Pincer into your python environment: pip install pincerDidn’t work? Depending on your python installation, you might need to use one of the following. pip isn’t in the path but python ispython -m pip install pincer Unix system can use pip3/python3 commandpython3 -m pip install pincerpip3 install pincer python isn’t in the pathpath/to/python.exe -m pip […]

Read more

JSON Logging for Sanic in python

JSON Logging for Sanic The other day I was running some containers on Amazon’s ECS and logging to cloudwatch. I then learnt cloudwatch parses JSON logs so obviously I then wanted Sanic to log out JSON. Ideally this’ll be useful to people but if it isn’t, raise an issue and we’ll make it better 🙂 To install: pip install sanic-json-logging Look at examples/simple.py for a full working example, but this will essentially get you going import sanic from sanic_json_logging import […]

Read more

Web app for keeping track of buildings in danger of collapsing in the event of an earthquake

:romania: Un cutremur în BucureÈ™ti nu este o situaÈ›ie ipotetică.Este o certitudine că acest lucru se va întâmpla.ÃŽn acest context, la mai bine de 40 de ani de la cutremurul din 1977, memoria colectivă a ascuns în profunzime amintirile acelui dezastru în încercarea de a-È™i înăbuÈ™i teama.Dar realitatea este că, patru decenii mai târziu, BucureÈ™tiul, la fel ca restul oraÈ™elor cu risc seismic ridicat, nu ar face față unui asemenea eveniment, iar pierderile de vieÈ›i omeneÈ™ti ar fi uriaÈ™e.ExerciÈ›iul Seism […]

Read more

Tmux session manager built on libtmux

tmuxp, tmux session manager. built on libtmux. We need help! tmuxp is a trusted session manager for tmux. If you could lend your time to helping answer issues and QA pull requests, please do! See issue #290! New to tmux? The Tao of tmux is available on Leanpub and Amazon Kindle. Read and browse the book for free on the web. Installation $ pip install –user tmuxp Load a tmux session Load tmux sessions    

Read more

Dead simple CLI tool to try Python packages

try is an easy-to-use cli tool to try out Python packages. Features Install specific package version from PyPI Install package from GitHub Install in virtualenv using specific version of python Specify alternative python package import name Keep try environment after interactive session Launch interactive python console with already imported package Launch editor instead of interpreter Launch arbitrary python shell instead of default python shell Usage try requests try requests –ipython try requests –shell ptipython try requests -p 3.5 try requests […]

Read more

Using Python Optional Arguments When Defining Functions

In this section, you’ll learn how to define a function that takes an optional argument. Functions with optional arguments offer more flexibility in how you can use them. You can call the function with or without the argument, and if there is no argument in the function call, then a default value is used. Default Values Assigned to Input Parameters You can modify the function add_item() so that the parameter quantity has a default value: # optional_params.py shopping_list = {} […]

Read more

Visual Question Answering in Pytorch

/! New version of pytorch for VQA available here: https://github.com/Cadene/block.bootstrap.pytorch This repo was made by Remi Cadene (LIP6) and Hedi Ben-Younes (LIP6-Heuritech), two PhD Students working on VQA at UPMC-LIP6 and their professors Matthieu Cord (LIP6) and Nicolas Thome (LIP6-CNAM). We developed this code in the frame of a research paper called MUTAN: Multimodal Tucker Fusion for VQA which is (as far as we know) the current state-of-the-art on the VQA 1.0 dataset. The goal of this repo is two […]

Read more

Deal or No Deal? End-to-End Learning for Negotiation Dialogues

end-to-end-negotiator This is a PyTorch implementation of the following research papers: The code is developed by Facebook AI Research. The code trains neural networks to hold negotiations in natural language, and allows reinforcement learning self play and rollout-based planning. If you want to use this code in your research, please cite: @inproceedings{DBLP:conf/icml/YaratsL18, author = {Denis Yarats and Mike Lewis}, title = {Hierarchical Text Generation and Planning for Strategic Dialogue}, booktitle = {Proceedings of the 35th International Conference on Machine Learning, […]

Read more

Image classification with synthetic gradient in Pytorch

I implement the Decoupled Neural Interfaces using Synthetic Gradients in pytorch. The paper uses synthetic gradient to decouple the layers among the network, which is pretty interesting since we won’t suffer from update lock anymore. I test my model in mnist and almost the same performance, compared to the model updated with backpropagation. Requirement pytorch python 3.5 torchvision seaborn (optional) matplotlib (optional) TODO use multi-threading on gpu to analyze the speed What’s synthetic gradients? We ofter optimize NN by backpropogation, […]

Read more

Improved Training of Wasserstein GANs in pytorch

A pytorch implementation of Paper “Improved Training of Wasserstein GANs”. Python, NumPy, SciPy, MatplotlibA recent NVIDIA GPU A latest master version of Pytorch [x] gan_toy.py : Toy datasets (8 Gaussians, 25 Gaussians, Swiss Roll).(Finished in 2017.5.8) [x] gan_language.py : Character-level language model (Discriminator is using nn.Conv1d. Generator is using nn.Conv1d. Finished in 2017.6.23. Finished in 2017.6.27.) [x] gan_mnist.py : MNIST (Running Results while Finished in 2017.6.26. Discriminator is using nn.Conv1d. Generator is using nn.Conv1d.) [ ] gan_64x64.py: 64×64 architectures(Looking forward […]

Read more
1 490 491 492 493 494 928