Package Centre > Docker > Install
/docker/gitea/postgresql
/docker/gitea/gitea
| FROM ubuntu:22.04 | |
| RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
| build-essential \ | |
| direnv \ | |
| git \ | |
| git-lfs \ | |
| libgtk-3-dev \ | |
| libxkbcommon-x11-0 \ | |
| python3-opencv \ |
| """ | |
| Recently Implicit Neural Representations gain popularity. | |
| One of the issues there though is that the learned representations | |
| are low-frequency biased, resulting in over-smoothed representations. | |
| There has been a few approaches suggested to alleviate the issue, | |
| for example by using positional encodings. | |
| An alternative could be using Sin/Cos activation functions, | |
| which in essence present a learnable basis functions. |
| #!/usr/bin/env python3 | |
| """Extract sensor_msgs/CompressedImage from bagfile and save into a folder as png or jpeg files | |
| Example usage: | |
| ./extract_images_from_bagfile.py bagfile.bag "/camera_topic" output_folder/images | |
| Then files will be saved inside: | |
| output_folder/images/image_1594120767.5438294.jpeg | |
| output_folder/images/image_1594120767.8838294.jpeg | |
| output_folder/images/image_1594120767.9538294.jpeg |
| showasm() { | |
| $1++ $2 -O$3 -std=c++2a -S -masm=intel -o _temp_name.s && cat _temp_name.s | c++filt | grep -vE '\s+\.' > _temp_name_.s && rm _temp_name.s && vim _temp_name_.s | |
| } |
| cat *.log | grep -o ".Loss.[0-9]*\.[0-9]*" | grep -o "[0-9]*\.[0-9]*" > loss_values.txt | |
| gnuplot <<- EOF | |
| set terminal dumb | |
| set xlabel "Iterations" | |
| set ylabel "Loss" | |
| plot "loss_values.txt" | |
| EOF | |
| #!/bin/bash | |
| cat *log | grep -o ".Loss.[0-9]*\.[0-9]*" | grep -o "[0-9]*\.[0-9]*" > loss_values.txt | |
| num=51 | |
| if [ $# -eq 1 ]; then | |
| num=$1 | |
| fi | |
| python -c "import numpy as np; from scipy.signal import savgol_filter; y=np.loadtxt('loss_values.txt'); yh=savgol_filter(y, $num, 3); np.savetxt('smoothed_values.txt',yh);" | |
| ( | |
| gnuplot <<- EOF |
| // Source: http://stackoverflow.com/questions/12791864/c-program-to-check-little-vs-big-endian | |
| #include <stdio.h> | |
| int main() | |
| { | |
| int x = 1; | |
| char *y = (char*)&x; | |
| if(*y){ | |
| printf("This computer is LITTLE endian.\n"); | |
| printf(" higher memory \n"); |
| # Add to .bashrc | |
| # alias tmux="TERM=screen-256color-bce tmux" | |
| # Installing new tmux on 14.04 | |
| # sudo add-apt-repository ppa:pi-rho/dev | |
| # sudo apt-get update | |
| # sudo apt-get install python-software-properties software-properties-common | |
| # sudo apt-get install -yqq tmux-next=2.3~20161028~bzr3606+20-1ubuntu1~ppa0~ubuntu14.04.1 | |
| # Add to .bashrc | |
| # alias tmux="TERM=screen-256color-bce tmux-next" |
| " Installing vundle, run: | |
| " git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
| " after, run in vim | |
| " :PluginInstall | |
| " | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() |