Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ImportError for IgniteInfo #1747

Merged
merged 23 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions monailabel/deepedit/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

import numpy as np
import torch
from monai.config import IgniteInfo
from monai.utils import min_version, optional_import
from monai.utils import IgniteInfo, min_version, optional_import
from monai.visualize import plot_2d_or_3d_image
from torch import distributed as dist
from torchvision.utils import make_grid
Expand Down
3 changes: 1 addition & 2 deletions sample-apps/pathology/lib/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
import numpy as np
import torch
import torch.distributed
from monai.config import IgniteInfo
from monai.metrics import compute_dice
from monai.utils import min_version, optional_import
from monai.utils import IgniteInfo, min_version, optional_import

Events, _ = optional_import("ignite.engine", IgniteInfo.OPT_IMPORT_VERSION, min_version, "Events")
make_grid, _ = optional_import("torchvision.utils", name="make_grid")
Expand Down
Loading