Skip to content

Instantly share code, notes, and snippets.

View bonlime's full-sized avatar

bonlime

  • Moscow
View GitHub Profile
@krushildhamelia
krushildhamelia / TopazLabs (Topaz Gigapixel AI, Topaz DeNoise AI, ...) AI Model Files List Of URLs.txt
Last active September 10, 2024 08:13
TopazLabs (Topaz Gigapixel AI, Topaz DeNoise AI, ...) AI Model Files List Of URLs. download and place under "%AppData%\Topaz Labs LLC\Topaz Gigapixel AI\tgrc\" OR "%PROGRAMDATA%\Topaz Labs LLC\Topaz Gigapixel AI\tgrc" to avoid downloading in program time. use aria2c to download the whole list with '--input-file=your_file.txt'.
http://models.topazlabs.com/v1/gnn-v1-fp16-256x256-1x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp16-256x256-2x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp16-256x256-4x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp16-384x384-1x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp16-384x384-2x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp16-384x384-4x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp32-256x256-1x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp32-256x256-2x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp32-256x256-4x-ov.tz
http://models.topazlabs.com/v1/gnn-v1-fp32-384x384-1x-ov.tz
@adgaudio
adgaudio / guided_filter_nd.py
Created March 17, 2021 10:18
Guided Filter supporting multi-channel guide image and 1 channel source image
"""
PyTorch Guided Filter for multi-channel (color) guide image and 1 channel
(grayscale) source image
"""
import torch as T
import torch.nn as nn
def box_filter_1d(tensor, dim, r):
cs = tensor.cumsum(dim).transpose(dim, 0)
@mikhailov-work
mikhailov-work / turbo_colormap.py
Created August 8, 2019 23:31
Turbo Colormap Look-up Table
# Copyright 2019 Google LLC.
# SPDX-License-Identifier: Apache-2.0
# Author: Anton Mikhailov
turbo_colormap_data = [[0.18995,0.07176,0.23217],[0.19483,0.08339,0.26149],[0.19956,0.09498,0.29024],[0.20415,0.10652,0.31844],[0.20860,0.11802,0.34607],[0.21291,0.12947,0.37314],[0.21708,0.14087,0.39964],[0.22111,0.15223,0.42558],[0.22500,0.16354,0.45096],[0.22875,0.17481,0.47578],[0.23236,0.18603,0.50004],[0.23582,0.19720,0.52373],[0.23915,0.20833,0.54686],[0.24234,0.21941,0.56942],[0.24539,0.23044,0.59142],[0.24830,0.24143,0.61286],[0.25107,0.25237,0.63374],[0.25369,0.26327,0.65406],[0.25618,0.27412,0.67381],[0.25853,0.28492,0.69300],[0.26074,0.29568,0.71162],[0.26280,0.30639,0.72968],[0.26473,0.31706,0.74718],[0.26652,0.32768,0.76412],[0.26816,0.33825,0.78050],[0.26967,0.34878,0.79631],[0.27103,0.35926,0.81156],[0.27226,0.36970,0.82624],[0.27334,0.38008,0.84037],[0.27429,0.39043,0.85393],[0.27509,0.40072,0.86692],[0.27576,0.41097,0.87936],[0.27628,0.42118,0.89123],[0.27667,0.43134,0.90254],[0.27691,0.44145,0.913
@yashkumaratri
yashkumaratri / Google Colab SSH
Created December 31, 2018 05:19
SSH into google colab
#CODE
#Generate root password
import random, string
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd
@mcarilli
mcarilli / commands.md
Last active June 11, 2024 20:13
Single- and multiprocess profiling workflow with nvprof and NVVP (Nsight Systems coming soon...)

Ordinary launch commands (no profiling):

Single-process:

python main_amp.py -a resnet50 --b 224 --deterministic --workers 4 --opt-level O1 ./bare_metal_train_val/

Multi-process:

python -m torch.distributed.launch  --nproc_per_node=2 main_amp.py -a resnet50 --b 224 --deterministic --workers 4 --opt-level O1 ./bare_metal_train_val/
@Yegorov
Yegorov / ya.py
Created January 13, 2018 16:08
Download file from Yandex.Disk through share link
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# https://toster.ru/q/72866
# How to
# wget http://gist.github.com/...
# chmod +x ya.py
# ./ya.py download_url path/to/directory
import os, sys, json
@Brainiarc7
Brainiarc7 / build-tensorflow-from-source.md
Last active September 9, 2024 22:48
Build Tensorflow from source, for better performance on Ubuntu.

Building Tensorflow from source on Ubuntu 16.04LTS for maximum performance:

TensorFlow is now distributed under an Apache v2 open source license on GitHub.

On Ubuntu 16.04LTS+:

Step 1. Install NVIDIA CUDA:

To use TensorFlow with NVIDIA GPUs, the first step is to install the CUDA Toolkit as shown:

@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active September 15, 2024 18:49
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active September 19, 2024 19:00
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \

Линал

[1] Кострикин А.И. Введение в алгебру, 1977, Наука.

[2] Кострикин А.И. Введение в алгебру, ч. I,II, 2000, Физматлит.

[3] Курош А.Г. Курс высшей алгебры, 1975, Наука.

[4] Винберг Э.Б. Курс алгебры, 1999, 2001, Факториал