Skip to content

Commit 5046b34

Browse files
committed
upd dependencies
1 parent a5d702e commit 5046b34

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

datasets/bias_celeba_utils/celeba.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
import logging
66
import os
77
from collections import namedtuple
8-
from typing import Any, Callable, List, Optional, Tuple, Union
9-
import numpy as np
10-
import pandas as pd
8+
from typing import Any, Callable, Optional, Tuple
119
from PIL import Image
1210
import torch
1311
from torchvision.datasets.utils import check_integrity, download_file_from_google_drive, extract_archive, verify_str_arg
@@ -45,6 +43,7 @@ def __init__(
4543
version: int = 1,
4644
) -> None:
4745
super().__init__(root, transform=transform, target_transform=target_transform)
46+
import pandas as pd
4847

4948
self.split = split
5049
self.target_type = "attr"

datasets/seq_eurosat_rgb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
import json
33
import logging
44
import os
5-
import sys
65
import zipfile
7-
import pandas as pd
86
import requests
97
import torch
108
import torchvision.transforms as transforms
@@ -30,6 +28,7 @@ class MyEuroSat(Dataset):
3028

3129
def __init__(self, root, split='train', transform=None,
3230
target_transform=None) -> None:
31+
import pandas as pd
3332

3433
self.root = root
3534
self.split = split
@@ -65,6 +64,7 @@ def __init__(self, root, split='train', transform=None,
6564

6665
@staticmethod
6766
def get_class_names():
67+
import pandas as pd
6868
if not os.path.exists(base_path() + f'eurosat/DONE'):
6969
gdd.download_file_from_google_drive(file_id='1Ip7yaCWFi0eaOFUGga0lUdVi_DDQth1o',
7070
dest_path=base_path() + 'eurosat/split.json')

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ dependencies = [
66
"accelerate>=1.6.0",
77
"bitsandbytes>=0.45.4",
88
"ftfy>=6.3.1",
9+
"googledrivedownloader==0.4",
910
"gpustat>=1.1.1",
1011
"kornia>=0.7.0",
1112
"numpy>=2.2.4",
1213
"onedrivedownloader>=1.1.3",
14+
"pandas>=2.2.3",
1315
"pillow>=11.1.0",
1416
"pyyaml>=6.0.2",
1517
"regex>=2024.11.6",

0 commit comments

Comments
 (0)