CLOOB Conditioned Latent Diffusion training and inference code

Introduction This repository contains the training code for CLOOB conditioned latent diffusion. CCLD is similar in approach to the CLIP conditioned diffusion trained by Katherine Crowson with a few key differences: The use of latent diffusion cuts training costs by something like a factor of ten, allowing a high quality 1.2 billion parameter model to converge in as few as 5 days on a single 8x A100 pod. CLOOB conditioning can take advantage of CLOOB’s unified latent space. CLOOB text […]

Read more

Abstraction of a Unit, includes convertions and basic operations

Abstraction of a Unit, includes convertions and basic operations. —— EXAMPLE : Free Fall (No air resistance) ——- from units_test import Unit, Constants g = Constants.g velocity = Unit(1, “km.s^-1”) time = Unit(2, “min”) distance = – g*time**2*(1/2) + velocity*time print( distance ) # Unit( 4.93680e+04 m ) print( distance.to(“mi”).text() ) # 105.24040 mi Notes: When having a unit to the zero e.g. km^0 in an operation, it’ll give a float, ussually Cannot multiply by const on the left i.e. […]

Read more

A simple and convenient build-and-run system for C and C++

Smake is a simple and convenient build-and-run system for C and C++ projects. Why make another build system? CMake and GNU Make are great build systems. However, as the project gets larger, and as there are increasingly many types of builds (e.g. a builds for debugging), it becomes tedious to add duplicate code. Smake solves this problem with its target-mode-build hierarchy. In this system,every project has a set of targets, and each target has a set of build modes. Whensmake […]

Read more

Python 3-D geographic coordinate conversions and geodesy

Python 3-D coordinate conversions Pure Python (no prerequistes beyond Python itself) 3-D geographic coordinate conversions and geodesy. API similar to popular $1000 Matlab Mapping Toolbox routines for Python PyMap3D is intended for non-interactive use on massively parallel (HPC) and embedded systems. Prerequisites Pymap3d is compatible with Python ≥ 3.7 including PyPy.Numpy and AstroPy are optional; algorithms from Vallado and Meeus are used if AstroPy is not present. Install python3 -m pip install pymap3d or for the latest development code: git […]

Read more

Text to Binary Converter in python

Text to Binary Converter Text to Binary Converter in python Programmed in Python | PySimpleGUI How it works Simple text to binary and binary to text converter easy to use. Its convert from text ascii to binary and from binary to text ascii. ASCII text encoding uses fixed 1 byte for each character. UTF-8 text encoding uses variable number of bytes for each character. This requires delimiter between each binary number. Convert binary ASCII code to text: Get binary byte […]

Read more