This file contains 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 os | |
import tensorflow as tf | |
import coremltools as ct | |
target_dir_path = # in my case, this path was output model path from tensorflow model maker | |
saved_model_path = os.path.join(target_dir_path, 'saved_model') | |
label_file_path = os.path.join(target_dir_path, 'labels.txt') | |
# convert tensorflow model into Core ML model |
This file contains 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 glob | |
# get all absolute paths of jpg images reculsively from the `path` | |
files = glob.glob(path + '/**/*.jpg', recursive=True) |
This file contains 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
# yolov5 to coreml with additiona layer definition | |
import torch | |
import coremltools as ct | |
from pathlib import Path | |
# Add silu function for yolov5s v4 model: https://github.com/apple/coremltools/issues/1099 | |
from coremltools.converters.mil import Builder as mb | |
from coremltools.converters.mil import register_torch_op | |
from coremltools.converters.mil.frontend.torch.ops import _get_inputs |
This file contains 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
sci name 1 | sci name 2 | en name 1 | en name 2 | en name 3 | ko name 1 | ko name 2 | |
---|---|---|---|---|---|---|---|
Phalacrocorax capillatus | Temminck’s Cormorant | Japanese Cormorant | 마우지 | ||||
Tyto longimembris | Eastern Grass Owl | 가면올빼미 | |||||
Anas formosa | Baikal Teal | 가창오리 | |||||
Corvus dauuricus | Daurian Jackdaw | Jackdaw | 갈까마귀 | ||||
Larus canus | Common Gull | Mew Gull | 갈매기 | ||||
Leucosticte arctoa | Rosy Finch | 갈색양진이 | |||||
Sula leucogaster | Brown Booby | 갈색얼가니새 | |||||
Riparia riparia | Collared Sand Martin | Sand Martin | Bank Swallow | 갈색제비 | |||
Acrocephalus orientalis | Oriental Reed Warbler | Great Reed Warbler | 개개비 |
This file contains 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
// | |
// ViewController.swift | |
// PhotoAlbumExample | |
// | |
// Created by tucan9389 on 2022/06/26. | |
// | |
import UIKit | |
import Photos |
We can't make this file beautiful and searchable because it's too large.
This file contains 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
"자치구","안심 주소","CCTV 용도","위도","경도","CCTV 수량","수정 일시" | |
"중랑구","방범373 충신길 53 메인1","도심공원","37.575179","127.00736","1","2021-11-16" | |
"중랑구","방범459 백석동길 187 검지2","도심공원","37.596453","126.967939","1","2021-11-16" | |
"중랑구","방범128 돈화문로11다길 44 검지1","도심공원","37.573735","126.989771","1","2021-11-16" | |
"중랑구","방범398 종로51가길 31 메인1","도심공원","37.573467","127.012433","1","2021-11-16" | |
"중랑구","방범458 삼청로5길 30 검지3","도심공원","37.58297","126.980254","1","2021-11-16" | |
"중랑구","방범460 자하문로38길 21 검지2","도심공원","37.594315","126.964782","1","2021-11-16" | |
"중랑구","방범119 인사동길 24 검지1","도심공원","37.573","126.986323","1","2021-11-16" | |
"중랑구","방범018-1 자하문로7길 69 검지1","도심공원","37.580224","126.969016","1","2021-11-16" | |
"중랑구","방범117 종로28길 11 검지1","도심공원","37.569905","126.995457","1","2021-11-16" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
// | |
// ViewController.swift | |
// ArgmaxChartApp | |
// | |
// Created by Doyoung Gwak on 2021/06/21. | |
// | |
import UIKit | |
class ViewController: UIViewController { |
This file contains 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
// https://markets.businessinsider.com/index/components/nasdaq_100 | |
var text = "" | |
$( ".table-small" ).find("tbody tr td a").each(function() { | |
var urlString = $(this).attr('href') | |
urlString = urlString.split("/")[2] | |
var symbol = urlString.split("-")[0] | |
text += symbol.toUpperCase() + "\n" | |
}); |
This file contains 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
width="400" | |
fps="12" | |
for path in "$@" | |
do | |
echo "$path" | |
# path setup | |
video_path=$path | |
directory_path=`dirname "$path"` | |
file=`basename "$path"` |