Replies: 1 comment 2 replies
-
step은 제가 임시로 넣고 테스트 요청드렸던거 같은데 근데 epoch 단위로 찍어도 추세를 알 수 있겠으면 상관없을 것 같은데 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1. train.py 에서 wandb.log에 epoch 추가하기
if args.wandb == True:
wandb.log({
"Train/Train loss": round(loss.item(), 4),
"Train/Train mIoU": round(mIoU.item(), 4),
"Train/Train acc": round(acc.item(), 4),
"learning_rate": current_lr,
"epoch":epoch+1
})
if args.wandb == True:
wandb.log({
"Media/predict images": figure,
"Valid/Valid loss": round(avg_loss.item(), 4),
"Valid/Valid mIoU": round(mIoU, 4),
"Valid/Valid acc": round(acc, 4),
"Metric/Background_IoU": IoU_by_class[0]['Background'], "Metric/General_trash_IoU": IoU_by_class[1]['General trash'], "Metric/Paper_IoU": IoU_by_class[2]['Paper'],
"Metric/Paper_pack_IoU": IoU_by_class[3]['Paper pack'], "Metric/Metal_IoU": IoU_by_class[4]['Metal'], "Metric/Glass_IoU": IoU_by_class[5]['Glass'],
"Metric/Plastic_IoU": IoU_by_class[6]['Plastic'], "Metric/Styrofoam_IoU": IoU_by_class[7]['Styrofoam'], "Metric/Plastic_bag_IoU": IoU_by_class[8]['Plastic bag'],
"Metric/Battery_IoU": IoU_by_class[9]['Battery'], "Metric/Clothing_IoU": IoU_by_class[10]['Clothing'],
"epoch":epoch+1
})
2. wandb에서 X Axis를 epoch로 설정하기
걸리는점
wandb.log에 step을 넣어주면 에러가 나서 뺐는데, 혹시 문제가 있을까요?
Beta Was this translation helpful? Give feedback.
All reactions