Image Processing With the Python Pillow Library

When you look at an image, you see the objects and people in it. However, when you read an image programmatically with Python or any other language, the computer sees an array of numbers. In this tutorial, you’ll learn how to manipulate images and perform basic image processing using the Python Pillow library. Pillow and its predecessor, PIL, are the original Python libraries for dealing with images. Even though there are other Python libraries for image processing, Pillow remains an […]

Read more

Python utility to generate filesystem content for Obsidian

Quickly parse, format, and output common frameworks/content for Obsidian.md. I ripped this out in 1-2 days so it’s at minimum viable product at the moment. This assumes all packages have been installed via PIP. See Installation for steps on this process. Just execute the proper build subcommand and generator.py will: Clone necessary repositories. Parse all artifacts. Embed frontmatter with tagging. Format them to .md files. And dump the files to disk in a directory of your choice. Assuming your vault […]

Read more

Luxor-HashrateIndex Python Library and Command Line GraphQL API Client

We’ve decided to open-source our datasets for the community to build features, perform research and bring even more transparency to the Bitcoin mining industry. Feel free to send your projects or questions our way to [email protected] or @hashrateindex on Twitter. Looking forward to see what y’all build! Get Started To get started, you will need the following basic information: Endpoint: https://api.hashrateindex.com/graphql API Key: Reach out to [email protected] to get an API Key. Code Snippet from hashrateindex import API from resolvers […]

Read more

Vision Transformer Slimming: Multi-Dimension Searching in Continuous Optimization Space

This is the official repository to the CVPR 2022 paper “Vision Transformer Slimming: Multi-Dimension Searching in Continuous Optimization Space” This repo is based on the training code in Deit and the tools in timm. Getting Started You will need Python 3.8 and the packages specified in requirements.txt. We recommend setting up a virtual environment with pip and installing the packages there. Install packages with: $ pip install -r requirements.txt Data preparation The layout of Imagenet data: /path/to/imagenet/ train/ class1/ img1.jpeg […]

Read more

It’s like Shape Editor in Maya but works with skeletons (transforms)

What is Skeleposer? Briefly, it’s like Shape Editor in Maya, but works with transforms and joints. It can be used to make complex facial rigs based on joints. It’s especially good for game engines and realtime graphics. Basic workflow You create skeleposer node, make joints, add them to skeleposer and then work with poses. Then you connect controls to the poses and that’s done! In practice, you work with skinCluster and poses at the same time. Features Skeleposer supports a […]

Read more

Script to generate markdown of API endpoints which then can be used to produce visual mindmap

Script to generate markdown of API endpoints which then can be used to produce visual mindmap to give a nice overview of the target. Supports txt as well as Burp xml as input. Why? After watching the bug bounty space develop and grow from the side I never noticed any such tool that visualizes the API by its endpoints and makes the researchers life easier to for example document APIs. Recently when I confronted a domain which had multiple big […]

Read more

Check if you have training samples in your test set

Did you manage to spill samples from your train set to your test set? from did_it_spill import check_spill spills = check_spill(train_loader, test_loader) print(f”You have {len(spills)} spills in your test set!”) The library computes hashes of your data to determine if you have samples spilled over from your train set to test set. Currently only for PyTorch. Installation Outputs Function outputs a list of tuples. Each tuple corresponds to a leak. The first index is where in the first loader the […]

Read more

Python scripts for performing 6D pose estimation and shape reconstruction using the CenterSnap model in ONNX

Python scripts for performing 6D pose estimation and shape reconstruction using the CenterSnap model in ONNX The original model has not been officially released, therefore, there might be changes to the official model later on. The examples seem to not properly work when using a camera other than the one in the original dataset. This is probably due to an implementation mistake on this repository, if you find the issue, please submit an issue or PR. The model only works […]

Read more
1 176 177 178 179 180 914