- Today
- Total
목록전체 글 (379)
작심삼일
원하는 것 vscode를 쓰면 다 좋은데 terminal창과 editor 창을 마우스 커서로 왔다갔다 하기 너무 귀찮다. 그래서 난 "ctrl + ;"로 keyboard shortcut을 만들어서 사용한다. 방법 ctrl + shift + P 를 누른 후 Open Keyboard Shorcuts (JSON)를 연다. 빈 json파일에 아래 코드를 적어서 저장한다. // Place your key bindings in this file to override the defaultsauto[] [ { "key": "ctrl+;", "command": "terminal.focus", "when": "editorFocus" }, { "key": "ctrl+;", "command": "workbench.action..
목표 Ubuntu가 설치된 PC를 booting USB를 이용해 다시 windows로 바꾸기! 원래는 PC 부팅 시 ESC나 F11을 연타하면 booting menu로 가는데 Ubuntu에는 없었다; 아래처럼 하면 booting menu를 뜨게할 수 있음 해결 방법 1. grub 파일에 들어간다 nano /etc/default/grub 2-1. 아래 코드를 GRUB_TIMEOUT_STYLE=hidden 2-2.로 바꾼다. GRUB_TIMEOUT_STYLE=menu 3. grub을 다시 세팅한다. sudo update-grub 4. 그러고 다시 재부팅하면 성공!
에러 c10::CUDAError 해결 방법 torch 버전을 업그레이드하면 된다. pip3 install -U torch torchvision torchaudio
에러 RuntimeError: Failed to import transformers.trainer because of the following error (look up to see its traceback): No module named 'torch._six' ModuleNotFoundError: No module named 'torch._six' 해결 방법 pip uninstall -y apex
에러 RuntimeError: Failed to import transformers.data.data_collator because of the following error (look up to see its traceback): 'MachAr' object has no attribute '_str_smallest_normal' AttributeError: 'MachAr' object has no attribute '_str_smallest_normal' 해결 방법 pip install numpy==1.23.1
에러 RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback): Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf ..
Git repository 변경하기 git remote set-url origin https://github.com/id/repository.git git init git add . git commit git push set-url origin 옆에 새로운 repository 주소를 적으면 된다.