DALLE-tools provided useful dataset utilities to improve you workflow with WebDatasets

DALLE-tools is a github repository with useful tools to categorize, annotate or check the sanity of your datasets. Installation Just clone this repository to your folder and use one of the following commands in the section underneath. WebDataset Annotator Press to switch to the next page, to change the annotation category or click on the image to add it to the current cateogry and save it in annotations.json. Please upload your annotations.json by creating a push request into community_annotations folder […]

Read more

Advent of Code: Solving Your Puzzles With Python

Advent of Code is an online Advent calendar where you’ll find new programming puzzles offered each day from December 1st to the 25th. While you can solve the puzzles at any time, the excitement when new puzzles unlock is really something special. You can participate in Advent of Code in any programming language—including Python! This tutorial will help you get started with solving puzzles and earning your first golden stars. Advent of Code puzzles are designed to be approachable by […]

Read more

Small game for you to run on your terminal

Pequeno joguinho pra você rodar no seu terminal Olá! Joguinho legal pra vc rodar no seu terminal!! (rode no terminal, pra melhor experiencia) Instalação, Clonagem e Acesso $ pkg upgrade $ pkg update $ pkg install git $ pkg install python $ git clone https://github.com/yScottLuck/JokenPython $ cd JokenPython $ python3 main.py GitHub View Github    

Read more

Prevent `CUDA error: out of memory` in just 1 line of code

Koila solves CUDA error: out of memory error painlessly.Fix it with just one line of code, and forget it. 🚀 Features 🙅 Prevents CUDA error: out of memory error with one single line of code. 🦥 Lazily evaluates pytorch code to save computing power. ✂️ Automatically splits along the batch dimension to more GPU friendly numbers (2’s powers) to speed up the execution. 🤏    

Read more

Simple converter for deploying Stable-Baselines3 model to TFLite and/or Coral

Introduction I’ve been using Stable-Baselines3to train agents against some custom Gyms, some of which require fairlylarge NNs in order to be effective. I want those agents to eventually be run on a pi or similar, so I needto export all the way to TFLiteand ideally a Coral. How to use Setup You will need to have configured the Coral system-wide stuff. Build a venv: python3 -m venv venv source venv/bin/activate python3 -m pip install -r requirements.txt Running This comes with […]

Read more

Automatically download all 10,000 CryptoPunk NFTs

The sole purpose of this script is to download the entire CryptoPunk NFT collection. How does it work? Basically, the website where the CryptoPunk pictures are stored lets you see the individual pictures numbered from 0000 to 9999. Since they’re all numbered chronologically, you can just pick a number, and change the image URL, and voila, you have the picture! Here’s NFT #0000, and here is NFT #6969. As you can tell, the URL remains unchanged for both except for […]

Read more

Automatically download any NFT collection from OpenSea

The sole purpose of this script is to download any NFT collection from OpenSea. How does it work? Basically, the OpenSea website allows for scripts to reach into their system via an API. Using this API, we fetch the amount of items in the collection of choice, and split it into 50-item chunks each, and start downloading them. Everything is automated, except the name of the collection. The name of the collection has to be set manually, by opening the […]

Read more

Convert tweets to Instagram-friendly images

Convert tweets to Instagram-friendly images. How to use If you want to use this repository as a submodule, don’t forget to put the fonts directory, the resources directory and credentials.py in your working directory. There are two main functions in tweet_image.py: def tweets_to_images(file, handle, name, showFavsRt, show_date) def tweet_to_image(name, username, showFavsRt, show_date, tweet, tweet_timestamp, favs, retweets, profile_image, tweet_id, media_url, r, g, b) tweets_to_images file: File with the tweets. You can generate such a file with this module which I have […]

Read more
1 378 379 380 381 382 976