Skip to content

Instantly share code, notes, and snippets.

View VladVin's full-sized avatar

Vlad Vinogradov VladVin

  • Optic
  • Innopolis, Russia
View GitHub Profile
@VladVin
VladVin / dvclive_loggerx.py
Created November 14, 2023 15:58
DVCLiveLoggerX - an upgrade of DVCLiveLogger
from argparse import Namespace
import shutil
from typing import Any, Dict, Optional, Union, MutableMapping
from dvclive.lightning import DVCLiveLogger
from lightning_fabric.utilities.logger import _convert_params
from omegaconf.listconfig import ListConfig
from lightning.pytorch.loggers.mlflow import rank_zero_only
git clone -b 3.3.0 git@github.com:opencv/opencv.git
git clone -b 3.3.0 git@github.com:opencv/opencv_contrib.git
dnf -y install gtk2-devel libdc1394-devel libv4l-devel ffmpeg-devel gstreamer-plugins-base-devel tbb-devel eigen3-devel \
libpng-devel libjpeg-turbo-devel jasper-devel openexr-devel libtiff-devel libwebp-devel
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/opt/opencv -D \
PYTHON_EXECUTABLE=/home/<user>/anaconda3/bin/python3.6 -DPYTHON_INCLUDE=/home/<user>/anaconda3/include/python3.6m/ \
path_len = 0.0
for i in range(1, len(astar_path)):
path_len += sqrt((astar_path[i][0] - astar_path[i - 1][0]) ** 2 +
(astar_path[i][1] - astar_path[i - 1][1]) ** 2)
print("path_len", path_len)
package benchmark;
import com.google.caliper.Param;
import com.google.caliper.Runner;
import com.google.caliper.SimpleBenchmark;
import sort_algs.Sorter;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
package becnhmark;
import com.google.caliper.BeforeExperiment;
import com.google.caliper.Param;
import sort_algs.Sorter;
import java.io.*;
import java.util.ArrayList;
public class Benchmark {
<?xml version="1.0" standalone="yes"?>
<Vegetables>
<Potato>
<Name>Row 0</Name>
<Number>0</Number>
</Potato>
<Potato>
<Name>Row 1</Name>
<Number>1</Number>
</Potato>
DataTable dt;
DataSet readDs;
public MainWindow()
{
InitializeComponent();
dt = new DataTable();
DataColumn dc;