whisper --language Korean --device cuda [file] 을 하면되는데 cpu가속이 되는경우가 있다.

확인 방법은

 

python3 -c "import torch; print(torch.cuda.is_available())"

False인 경우 버젼을 확인해본다.

python3 -c "import torch; print(torch.__version__)"

 

https://developer.nvidia.com/cuda-11-6-0-download-archive

 

CUDA Toolkit 11.6 Downloads

Get CUDA Toolkit 11.6 for Linux and Windows.

developer.nvidia.com

를 통해서 cuda를 설치해야되는데, 오늘기준으로 보면 cuda 11.6을 설치해야되는걸로 보인다.

 

https://pytorch.org/get-started/previous-versions/

 

Previous PyTorch Versions

Installing previous versions of PyTorch

pytorch.org

에서 확인해보면 

# CUDA 11.6
pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116

라고 되어있으니 그대로 실행한뒤 (pip3을 사용했음) torch버젼을 확인해보면 제대로 설치되어있다.

kalstein@GAMEPC:~/aa_lecture/20241108$ python3 -c "import torch; print(torch.__version__)"
1.13.1+cu116

 

이후에 whisper를 실행해보면 월등히 빠른속도로 나온다.

gcc-arm-none-eabi 관련해서 permission이 없다는 에러

'/bin/sh: 1: arm-none-eabi-gcc: Permission denied'

 

-> 설치가 안되어있음.

sudo apt install gcc-arm-none-eabi

 

 

 

platforms/chibios/platform.mk:266: lib/chibios/os/hal/lib/streams/streams.mk: No such file or directory
gmake: *** No rule to make target 'lib/chibios/os/hal/lib/streams/streams.mk'.  Stop.

 

-> 이것도 qmk쪽의 chibios가 설치 안되어서 생기는 문제

qmk git-submodule

 

https://hiperzstudio.tistory.com/63

 

[Windows] 특정 port가 시스템에 예약되어 있어서 사용 불가능 한 경우 해결방법

서버 프로그램을 동작 시키기 위해 특정 TCP 포트를 열려고 할 때 이미 사용중인 포트라는 오류가 뜨면 일반적으로 netstat를 사용하거나 마소에서 제공하는 TCPView(https://learn.microsoft.com/en-us/sysintern

hiperzstudio.tistory.com

확인해본다.

 

사용하고 있는 프로세스가 없는경우,

netsh interface ipv4 show excludedportrange protocol=tcp

출처: https://hiperzstudio.tistory.com/63 [쭈니아빠 블로그:티스토리]

으로 확인해볼수 있고. 초기화는

 

net stop winnat
net start winnat

를 한다.

https://learn.microsoft.com/en-us/windows-hardware/test/wpt/optimizing-performance-and-responsiveness

이벤트뷰어에서 보니 

Microsoft-Windows-Security-SPP

EventID 16394

라는 녀석이 발생할때마다 튕기는거 같았다.

 

검색해보니

DISM.exe /Online /Cleanup-Image /RestoreHealth

를 하면 된다길래 cmd에서 입력해봄.

 

안튕기는지 며칠 봐야될듯.

hesuvi.zip
0.19MB

뭐 그냥...공유용.

1. 윈도 기능 추가/삭제 (appwiz.cpl -> Windows 기능 켜기/끄기) 에서 SMB1.0 부분 삭제. SMB Direct 추가.

 

2. 서버측 

    관리자권한 PowerShell 에서

Set-SmbServerConfiguration -EnableSMB2Protocol $true

 

 

3. 클라이언트측

    관리자권한 cmd에서 

sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi

sc.exe config mrxsmb20 start= demand

 

isine10_0db.txt
0.00MB
isine10_nalsse.txt
0.00MB

0db쪽이 좀 더 맘에 드는듯.

git reset --hard HEAD^ : --hard 를 해야 내가 가진 코드에서 수정된걸 revert 한다.

C / C++

  1. Click Window » Preferences
  2. Expand C/C++ » Code Style
  3. Click Formatter
  4. Click the New button to create a new profile, then OK to continue
  5. Click the Indentation tab
  6. Under General Settings, set Tab policy to: Spaces only
  7. Click OK ad nauseam to apply the changes.


+ Recent posts