Skip to content

Commit

Permalink
always use tqdm autonotebook for tqdm
Browse files Browse the repository at this point in the history
  • Loading branch information
rwood-97 committed Sep 11, 2024
1 parent 889408e commit da1dc19
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 11 deletions.
4 changes: 0 additions & 4 deletions mapreader/classify/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@

from .datasets import PatchDataset

# import pickle
# from tqdm.autonotebook import tqdm
# from torch.nn.modules.module import _addindent


class ClassifierContainer:
"""
Expand Down
2 changes: 1 addition & 1 deletion mapreader/download/sheet_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from pyproj.crs import CRS
from shapely.geometry import LineString, Point, Polygon, shape
from shapely.ops import unary_union
from tqdm.auto import tqdm
from tqdm.autonotebook import tqdm

from .downloader_utils import get_grid_bb_from_polygon, get_polygon_from_grid_bb
from .tile_loading import DEFAULT_TEMP_FOLDER, TileDownloader
Expand Down
2 changes: 1 addition & 1 deletion mapreader/download/tile_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import urllib.request

from joblib import Parallel, delayed
from tqdm import tqdm
from tqdm.autonotebook import tqdm

from .data_structures import GridBoundingBox, GridIndex

Expand Down
2 changes: 1 addition & 1 deletion mapreader/download/tile_merging.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os

from PIL import Image
from tqdm import tqdm
from tqdm.autonotebook import tqdm

from .data_structures import GridBoundingBox, GridIndex
from .tile_loading import DEFAULT_IMG_DOWNLOAD_FORMAT, DEFAULT_TEMP_FOLDER
Expand Down
2 changes: 1 addition & 1 deletion mapreader/load/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from rasterio.plot import reshape_as_raster
from shapely import wkt
from shapely.geometry import Polygon, box
from tqdm.auto import tqdm
from tqdm.autonotebook import tqdm

from mapreader.download.data_structures import GridBoundingBox, GridIndex
from mapreader.download.downloader_utils import get_polygon_from_grid_bb
Expand Down
2 changes: 1 addition & 1 deletion mapreader/process/context_post_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from itertools import product

import pandas as pd
from tqdm import tqdm
from tqdm.autonotebook import tqdm


class ContextPostProcessor:
Expand Down
2 changes: 1 addition & 1 deletion mapreader/process/occlusion_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from PIL import Image
from torch import nn
from torchvision import transforms
from tqdm import tqdm
from tqdm.autonotebook import tqdm


class OcclusionAnalyzer:
Expand Down
2 changes: 1 addition & 1 deletion mapreader/spot_text/runner_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import pandas as pd
from PIL import Image
from shapely import Polygon
from tqdm.auto import tqdm
from tqdm.autonotebook import tqdm


class Runner:
Expand Down

0 comments on commit da1dc19

Please sign in to comment.