You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Hope everyione is doing well. The model with the best metric is not saved. What could be the problem?
The following is my code.
`
import logging
import os
import sys
import tempfile
from glob import glob
import nibabel as nib
import numpy as np
import torch
from ignite.metrics import Accuracy
import monai
from monai.apps import get_logger
import monai.engines as me
import monai.transforms as mt
import monai.handlers as mh
import monai.inferers as mi
import monai.data as md
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! Hope everyione is doing well. The model with the best metric is not saved. What could be the problem?
The following is my code.
`
import logging
import os
import sys
import tempfile
from glob import glob
import nibabel as nib
import numpy as np
import torch
from ignite.metrics import Accuracy
import monai
from monai.apps import get_logger
import monai.engines as me
import monai.transforms as mt
import monai.handlers as mh
import monai.inferers as mi
import monai.data as md
def main(data_dir):
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
get_logger("train_log")
if name == "main":
data_dir = "/home/fersein/Documents/ProstateSegmentation/Task05_Prostate"
main(data_dir)
`
Beta Was this translation helpful? Give feedback.
All reactions