This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| def np_class2one_hot(category_array: np.ndarray, n_classes: int) -> np.ndarray: | |
| res = np.eye(n_classes)[np.array(category_array).reshape(-1)] | |
| return res.reshape(list(category_array.shape) + [n_classes]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| input_file="$1" | |
| N="$2" | |
| output_dir="${3:-.}" | |
| # Get image width | |
| width=$(ffprobe -v error -select_streams v:0 -show_entries stream=width -of csv=p=0 "$input_file") | |
| # Calculate width of each segment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import argparse | |
| import tkinter as tk | |
| from tkinter import scrolledtext | |
| def main(order_title_init, supplement_title_init): | |
| # メインウィンドウの作成 | |
| root = tk.Tk() | |
| root.title("Text Generator") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ファイルパス | |
| whitelist_file="whitelist.txt" | |
| raw_dir="input" | |
| extracted_dir="extracted" | |
| # extractedディレクトリが存在しない場合は作成する | |
| if [ ! -d "$extracted_dir" ]; then | |
| mkdir "$extracted_dir" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import open3d as o3d | |
| import numpy as np | |
| import time | |
| # 点群を生成 | |
| pcd = o3d.geometry.PointCloud() | |
| pcd.points = o3d.utility.Vector3dVector(np.random.rand(1000, 3)) | |
| # ビジュアライザーの設定 | |
| vis = o3d.visualization.Visualizer() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import argparse | |
| import tkinter as tk | |
| from tkinter import scrolledtext | |
| def main(order_title_init, supplement_title_init): | |
| # メインウィンドウの作成 | |
| root = tk.Tk() | |
| root.title("Text Generator") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| font-family = "JetBrains Mono" | |
| font-family = "Noto Sans CJK JP" | |
| font-size = 15 | |
| font-feature = -dlig |
OlderNewer