git clone git@github.com:metaplex-foundation/metaplex.git
cd metaplex/rust
cargo build-bpf
solana config set --url localhost
solana-test-validator
| import torch | |
| import numpy as np | |
| def get_cuda_from_numpy(arr: np.ndarray): | |
| tensor = torch.from_numpy(arr) | |
| if torch.cuda.is_available(): | |
| return tensor.to(0) | |
| else: |
| version: "3" | |
| services: | |
| watchtower: | |
| image: containrrr/watchtower | |
| restart: always | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| - /etc/timezone:/etc/timezone:ro | |
| - /root/.docker/config.json:/config.json | |
| environment: |
| import argparse | |
| import json | |
| import pathlib | |
| import pathlib | |
| import numpy as np | |
| import os | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("--annotations-path","-A",default = "annotations.json",help="Path of annotations file") | |
| parser.add_argument("--out-path","-O",default="labels_out.txt",help="Output path of .txt file.") |
| import argparse | |
| from shutil import rmtree | |
| import cv2 | |
| import os | |
| import pathlib | |
| from tqdm import tqdm | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("--images-dir","-I",default="images",help="Directory of input images") | |
| parser.add_argument("--out-dir","-O",default="out",help="Directory of extracted images") |
| import cv2 | |
| import argparse | |
| import pathlib | |
| import os | |
| from shutil import rmtree | |
| from tqdm import trange | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("--frame-rate",default=50) |
| netstat -ano | findstr :8080 | |
| stop-process 82932 |
| git update-git-for-windows |
| version: "3.5" | |
| services: | |
| platerecognizer: | |
| image: platerecognizer/alpr | |
| restart: always | |
| environment: | |
| - TOKEN=YYYYY | |
| - LICENSE_KEY=XXXXX | |
| volumes: |
| import pathlib | |
| pathlib.Path("asdf").mkdir(parents=True, exist_ok=True) |