Comments (2)
Chapter4. [4-4 모델환경설정 사전 작업]에서 문제가 있습니다.
from ratsnlp.nlpbook.classification import ClassificationTrainArguments
실행시
ImportError: cannot import name 'get_num_classes' from 'torchmetrics.utilities.data' (/usr/local/lib/python3.7/dist-packages/torchmetrics/utilities/data.py)
에러가 발생합니다.
리서치 후 해결방안
파이토치 라이트닝을 1.5.10 버전으로 다운그레이드하면 정상 로드 되는 것을 확인했습니다.
!pip install pytorch_lightning==1.5.10
4-4 환경 세팅 순서 정리합니다.
-
본인 cuda 환경에 맞는 파이토치 및 토치비전, 토치 텍스트 설치
!pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchtext==0.10.0 -f https://download.pytorch.org/whl/cu111/torch_stable.html -
의존성 라이브러리 설치
!pip install ratsnlp --user -
토치라이트닝 다운그레이드
!pip install pytorch_lightning==1.5.10
from nlpbook.
코랩 환경이 변화무쌍하게 바뀌면서 의존성 패키지들 문제가 생긴 것 같네요ㅠㅠ
불편 드려 죄송합니다.
의존성 문제를 해결한 ratsnlp 1.0.5를 배포하였습니다.
지금은 pip install ratsnlp
만 입력해도 실행이 가능한 상태입니다.
from nlpbook.
Related Issues (20)
- Question Answering - ratsgo's NLPBOOK
- Inference - ratsgo's NLPBOOK
- ↗️ Customization - ratsgo's NLPBOOK
- 4-3 마지막 웹서비스 개시에서 실행이 되지 않습니다 HOT 3
- Inference (1) - ratsgo's NLPBOOK
- Deep NLP - ratsgo's NLPBOOK
- 6장 단어에 꼬리표 달기에 대해서 질문 있습니다.
- 1장 kcbert 관련 오류 문의드립니다.
- Environment - ratsgo's NLPBOOK
- Training Pipeline - ratsgo's NLPBOOK
- 4-3 웹서비스 시작하기 HOT 2
- 5-3 학습 마친 모델 실전 투입에서 웹서비스 실행시 ERR_NGROK_6022 이 뜨네요.ㅠ.ㅠ HOT 2
- ratsnlp 라이브러리를 설치하지 않고 일반적인 패키지를 설치하는 방법은 없을까요? HOT 1
- Home - ratsgo's NLPBOOK
- Named Entity Recognition - ratsgo's NLPBOOK
- removal request
- P150 웹 서비스 시작하기가 (기존 해결책대로 했는데도) 에러가 납니다.
- 커스텀 데이터_분류_레이블별 성능체크 방법
- Vocab Tutorial - ratsgo's NLPBOOK
- 4장 5단계 웹서비스 시작하기 관련 질문 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nlpbook.