일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- GIT
- 코크리
- Multi-Resolution Networks for Semantic Segmentation in Whole Slide Images
- numpy
- aiffel exploration
- Jupyter notebook
- CellPin
- 사회조사분석사2급
- HookNet
- ssh
- airflow
- cocre
- Pull Request
- 히비스서커스
- 티스토리챌린지
- WSSS
- 기초확률론
- 프로그래머스
- cs231n
- vscode
- Decision Boundary
- 백신후원
- AIFFEL
- docker exec
- 오블완
- docker attach
- docker
- 도커
- IVI
- logistic regression
Archives
- Today
- Total
목록AttributeError: 'model' object has no attribute 'predict' (1)
히비스서커스의 블로그
[Python] AttributeError: 'model' object has no attribute 'predict' (feat. pytorch에서 직접 설계한 모델)
pytorch로 모델을 직접 설계하여 모델을 학습시킨 후 model.predict()을 하였으나 model에는 predict 특성이 없다는 에러가 발생하였다. 상황 설계한 모델형식 (간단하게 줄여서 나타냄) import torch import torch.nn as nn class simple_model(nn.Module): def __int__(self, inchannels, out_channels, kernel_size, stride, padding): super().__init__() self.conv = nn.Conv2d(in_channels=in_channels, out_channels=out_channels, kernel_size=kernel_size, stride=stride, padding=..
Programming/Python
2021. 11. 10. 14:28