minhanhto09
commited on
Commit
•
691539a
1
Parent(s):
3e597e3
Update NuCLS_dataset.py
Browse files- NuCLS_dataset.py +0 -3
NuCLS_dataset.py
CHANGED
@@ -20,7 +20,6 @@ Created on Tue Mar 12 16:13:56 2024
|
|
20 |
# See the License for the specific language governing permissions and
|
21 |
# limitations under the License.
|
22 |
|
23 |
-
%%writefile Test7.py
|
24 |
import pandas as pd
|
25 |
from PIL import Image as PilImage # Import PIL Image with an alias
|
26 |
import datasets
|
@@ -102,7 +101,6 @@ class NuCLSDataset(GeneratorBasedBuilder):
|
|
102 |
citation=_CITATION,
|
103 |
)
|
104 |
|
105 |
-
|
106 |
def _split_generators(self, dl_manager: DownloadManager):
|
107 |
# Download source data
|
108 |
data_dir = dl_manager.download_and_extract(_URL)
|
@@ -169,7 +167,6 @@ class NuCLSDataset(GeneratorBasedBuilder):
|
|
169 |
|
170 |
return split_slide_names
|
171 |
|
172 |
-
|
173 |
def _map_filenames_to_paths(self, filenames, rgb_dir, visualization_dir, mask_dir, csv_dir):
|
174 |
"""Maps filenames to file paths for each split."""
|
175 |
filepaths = {}
|
|
|
20 |
# See the License for the specific language governing permissions and
|
21 |
# limitations under the License.
|
22 |
|
|
|
23 |
import pandas as pd
|
24 |
from PIL import Image as PilImage # Import PIL Image with an alias
|
25 |
import datasets
|
|
|
101 |
citation=_CITATION,
|
102 |
)
|
103 |
|
|
|
104 |
def _split_generators(self, dl_manager: DownloadManager):
|
105 |
# Download source data
|
106 |
data_dir = dl_manager.download_and_extract(_URL)
|
|
|
167 |
|
168 |
return split_slide_names
|
169 |
|
|
|
170 |
def _map_filenames_to_paths(self, filenames, rgb_dir, visualization_dir, mask_dir, csv_dir):
|
171 |
"""Maps filenames to file paths for each split."""
|
172 |
filepaths = {}
|