Maximum Spatial Perturbation for Image-to-Image Translation (Official Implementation)

This repository is by Yanwu Xu and contains the PyTorch source code to reproduce the experiments in our CVPR2022 paper Maximum Spatial Perturbation Consistency for Unpaired Image-to-Image Translation by Yanwu Xu, Shaoan Xie, Wenhao Wu, Kun Zhang, Mingming Gong* and Kayhan Batmanghelich* (* Equal Advising) Purturbation Consistency Spatial Alignment Face Pose Transfer data can be downloaded here Experiments on real data To run the code on the face pose transfer data. 1. download the data from above link 2. unzip […]

Read more

A multi-lingual approach to AllenNLP CoReference Resolution using along with a wrapper for spaCy

Coreference is amazing but the data required for training a model is very scarce. In our case, the available training for non-English languages also proved to be poorly annotated. Crosslingual Coreference, therefore, uses the assumption a trained model with English data and cross-lingual embeddings should work for languages with similar sentence structures. pip install crosslingual-coreference

Read more

eInk Display for the PiHole

eInk Display for the PiHole Inspired by: https://github.com/neauoire/inky-hole Display statistics including the number of blocked requests, and filtered traffic, from Pi-Hole, on Pimoroni’s Inky pHAT. Default display / Simple display (using –simple option): LCARS display (using –lcars option) / LCARS + Simple: Installation Setup Pi-Hole, follow the installation instructions. Setup Inky pHAT, follow the installation instructions. Clone this repo on your Raspberry Pi Zero W. git clone https://github.com/doublehelix/inky-pihole.git Test your setup Executing the following command will run the script   […]

Read more

Small numerical simulator example

This is a small example of the kind of small numerical simulator I often write as I explore the dynamics of different kinds of systems. It’s not sophisticated, or advanced, but it is powerful. Usage python3 ski_sim.py | tee results.png This type of code runs multiple times faster with Pypy than it does with standard python. Exercises (Simple) Replace the normal distributions with distributions with other shapes, especially heavy tails. (Simple) Measure queue wait latency directly, calculating percentiles or other […]

Read more

A very impractical 3D rendering engine that runs in the python terminal

A very impractical 3D rendering engine that runs in the python terminal. do NOT try to run this program using the standard python IDE as it does not use ANSI escape codes. If your terminal of choice does not support ANSI escape codes it will also break in the same way. ONLY ON VERSIONS BEFORE 0.1.3: Due to the time it takes to use the print command, sometimes the screen will refresh while the program is in the process of […]

Read more

Bailando: 3D dance generation via Actor-Critic GPT with Choreographic Memory

Code for CVPR 2022 (oral) paper “Bailando: 3D dance generation via Actor-Critic GPT with Choreographic Memory” [Paper] | [Project Page] | [Video Demo] Driving 3D characters to dance following a piece of music is highly challenging due to the spatial constraints applied to poses by choreography norms. In addition, the generated dance sequence also needs to maintain temporal coherency with different music genres. To tackle these challenges, we propose a novel music-to-dance framework, Bailando, with two powerful components: 1) a […]

Read more

CLOOB training (JAX) and inference (JAX and PyTorch)

Pretrained models PyTorch from cloob_training import model_pt, pretrained pretrained.list_configs() returns: [‘cloob_laion_400m_vit_b_16_16_epochs’, ‘cloob_laion_400m_vit_b_16_32_epochs’] The models can be used by: config = pretrained.get_config(‘cloob_laion_400m_vit_b_16_16_epochs’) model = model_pt.get_pt_model(config) checkpoint = pretrained.download_checkpoint(config) model.load_state_dict(model_pt.get_pt_params(config, checkpoint)) model.eval().requires_grad_(False).to(‘cuda’) Model class attributes: model.config: the model config dict. model.image_encoder: the image encoder, which expects NCHW batches of normalized images (preprocessed by model.normalize), where C    

Read more

A simple tool to parse json logs and output them in a nice format with nice colors

sugarjazy is a simple tool to parse json logs and output them in a nice format with nice colors. Usually play nicely with https://github.com/uber-go/zap when using the “Sugar” logger output. As a tekton developer this works pretty well with tekton controllers and webhooks pods but the shoudld work as well with most knative package and other pods using go-uber/zap. Screenshot Default Stream from kail with sugarjazy sugarjazy-kail.mp4 Installation There is not many dependencies on this package but python-dateutil is   […]

Read more

Octoprint plugin for tracing lines and generating toolpaths

Introduction This plugin intends to enable direct generation of toolpaths from physical line following. This is illustrated in this video: This could be useful in cases where the object is not originating from a CAD drawing, but is coming from a physical object, like cutting a piece to fit into an existing odd-shaped hole. Installation This has only been tested on OctoPi. It has only been tested with the latest version of OctoPrint. It might work on earlier versions based […]

Read more

Previewer for VapourSynth scripts

Fork of Endilll’s vapoursynth-preview (not maintained anymore) This program is meant to be paired with a code editor with integrated terminal like Visual Studio Code. Python (3.9+ required) Make sure to install Python to your PATH. Vapoursynth (R57+ required) pip install -U git+https://github.com/Irrational-Encoding-Wizardry/vs-preview.git It can then be used by running vspreview script.vpy or your preferred way in your IDE. GitHub View Github    

Read more
1 217 218 219 220 221 979