Skip to content

Instantly share code, notes, and snippets.

View qkdxorjs1002's full-sized avatar
🔨

paragonnov qkdxorjs1002

🔨
  • Gangnam-gu, Seoul, Republic of Korea
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import torch
from transformers import pipeline, AutoModelForCausalLM
MODEL = 'beomi/KoAlpaca-Polyglot-12.8B'
DEVICE = torch.device("cuda") if torch.cuda.is_available() else (torch.device("mps") if torch.backends.mps.is_available() else "cpu")
model = AutoModelForCausalLM.from_pretrained(
MODEL,
torch_dtype=torch.float16,
low_cpu_mem_usage=True,
@qkdxorjs1002
qkdxorjs1002 / slackpushbot.py
Last active January 17, 2022 00:48
Python Slack Message Push Bot
import requests
class SlackPushBot:
def __init__(self, oauthToken, channelId):
# API Base URL
self.setBaseUrl("https://slack.com/api")
# OAuth Token
self.setOAuthToken(oauthToken)
# Notice Channel ID
@qkdxorjs1002
qkdxorjs1002 / dir_pair_check.py
Last active January 24, 2024 01:34
음성 수집 데이터 Pair(WAV/JSON) 일괄 체크 스크립트
from collections import defaultdict
import os
import time
import re
from datetime import datetime
### 디렉터리 경로
# 역슬래시는 이중으로
# 예시) = "C:\\NIA_COMPLETE_labeling\\"
sourcePath = "/Users/paragonnov/Documents/org/submit"
@qkdxorjs1002
qkdxorjs1002 / regex_renamer.py
Last active January 24, 2024 01:34
정규식 사용 디렉터리 이름 일괄 변경 (01234 -> 1234) 스크립트
import os
import time
import re
from datetime import datetime
### 디렉터리 경로
# 역슬래시는 이중으로
# 예시) = "C:\\NIA_COMPLETE_labeling\\"
sourcePath = "/Users/paragonnov/Documents/org/submit"
@qkdxorjs1002
qkdxorjs1002 / hardlinker.py
Last active January 24, 2024 01:35
디렉터리 경로 생성, 파일 하드링크로 일괄 분할하는 스크립트
import os
import time
from datetime import datetime
### 디렉터리 경로
# 역슬래시는 이중으로
# 예시) = "C:\\NIA_COMPLETE_labeling\\"
sourcePath = "/Users/paragonnov/Documents/org/submit"
# 시작 시간 기록
@qkdxorjs1002
qkdxorjs1002 / nia_submit_statistics.py
Last active January 24, 2024 01:35
NIA 음성수집 가공 데이터 다양성 통계 스크립트
import json
import os
from decimal import Decimal
import time
from datetime import datetime
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from utils.slackpushbot import SlackPushBot
@qkdxorjs1002
qkdxorjs1002 / dapp_rsp.sol
Last active October 5, 2021 09:49
Rock, Scissor, Paper with Solidity
pragma solidity ^0.5.1;
contract RSP {
/**
* 각 패의 2진 값
*
* 001: 바위 / 010: 가위 / 100: 보
*/
uint8 constant ROCK = 1;
@qkdxorjs1002
qkdxorjs1002 / abcstore.go
Last active September 17, 2021 08:33
Hyperledger Fabric test chaincode
/*
Copyright IBM Corp. 2016 All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@qkdxorjs1002
qkdxorjs1002 / anime4k_configurations_for_mbp.md
Last active September 12, 2023 13:07
Anime4K Configurations for M1, Intel MacBook Pro 13

Anime4K Shader Configurations

Anime4K Configurations for M1, Intel MacBook Pro 13

Intro

You can download Anime4K with config instructions from Here

Also, IINA Media Player from Here

! I have no idea about configuration that applied other video filters with this configurations.