분석시각화 대회 코드 공유 게시물은
내용 확인 후
좋아요(투표) 가능합니다.
2023 교원그룹 AI OCR 챌린지
베이스라인 돌리려하는데
image_batch, text_batch = next(iter(train_loader))
print(image_batch.size(), text_batch)
여기서 너무 오래걸리고 안넘어가는데 원래그런가요..?
제 환경은 gpu 1개(3090) window입니다
감사합니다 ㅠㅠ 덕분에 해결됬습니다.
Deleted Comment
image_batch, text_batch = iter(train_loader).next()
print(image_batch.size(), text_batch)
이 방법도 시도해보세요!
저도
image_batch, text_batch = iter(train_loader).next() 이 소스코드에서
아래 에러 나는데, 위 댓글 봐도 모르겠어요 도와주세요..
'_MultiProcessingDataLoaderIter' object has no attribute 'next'
image_batch, text_batch = next(iter(train_loader))
로 변경해보세요. 또는 다음 링크 참조하시면 도움 될 듯 합니다.
https://dacon.io/competitions/official/236042/talkboard/407531?page=1&dtype=recent
DACON Co.,Ltd | CEO Kookjin Kim | 699-81-01021
Mail-order-sales Registration Number: 2021-서울영등포-1704
Business Providing Employment Information Number: J1204020250004
#901, Eunhaeng-ro 3, Yeongdeungpo-gu, Seoul 07237
E-mail dacon@dacon.io |
Tel. 070-4102-0545
Copyright ⓒ DACON Inc. All rights reserved
https://www.inflearn.com/questions/40850/멀티프로세싱-에러-질문입니다 를 보고 참고했구요
저도 정확히는 몰라서
train_dataset = CustomDataset(train['img_path'].values, train['label'].values)
train_loader = DataLoader(train_dataset, batch_size = CFG['BATCH_SIZE'], shuffle=True)
val_dataset = CustomDataset(val['img_path'].values, val['label'].values)
val_loader = DataLoader(val_dataset, batch_size = CFG['BATCH_SIZE'], shuffle=True)
로
num_workers 를 없애서 강제로 바꾸니까 되기는 합니다 근본적인 해결법은 아닙니다.