Datasets:
Delete CellCTC
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- CellCTC/.gitattributes +0 -35
- CellCTC/chanage_names.py +0 -61
- CellCTC/convert_to_jpg.py +0 -82
- CellCTC/download.py +0 -90
- CellCTC/extract.py +0 -39
- CellCTC/frames/Fluo-C2DL-Huh7-01/000.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/001.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/002.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/003.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/004.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/005.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/006.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/007.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/008.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/009.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/010.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/011.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/012.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/013.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/014.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/015.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/016.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/017.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/018.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/019.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/020.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/021.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/022.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/023.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/024.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/025.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/026.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/027.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/028.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-01/029.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/000.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/001.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/002.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/003.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/004.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/005.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/006.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/007.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/008.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/009.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/010.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/011.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/012.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/013.jpg +0 -3
- CellCTC/frames/Fluo-C2DL-Huh7-02/014.jpg +0 -3
CellCTC/.gitattributes
DELETED
|
@@ -1,35 +0,0 @@
|
|
| 1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CellCTC/chanage_names.py
DELETED
|
@@ -1,61 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
|
| 3 |
-
# Base directory for the annotations
|
| 4 |
-
annotations_dir = "/l/users/sahal.mullappilly/Komal/documents/Cell/CTCdataset/Annotations"
|
| 5 |
-
|
| 6 |
-
# Function to rename the files in the annotations folder
|
| 7 |
-
def rename_annotation_files():
|
| 8 |
-
# Walk through the directories and files in the annotations folder
|
| 9 |
-
for root, dirs, files in os.walk(annotations_dir):
|
| 10 |
-
for file in files:
|
| 11 |
-
# Check if the file is a PNG (annotation files)
|
| 12 |
-
if file.endswith(".png"):
|
| 13 |
-
# Create a new name based on the current naming pattern
|
| 14 |
-
base_filename = file.replace("man_track", "t").replace(".png", ".png") # Rename pattern
|
| 15 |
-
new_file_path = os.path.join(root, base_filename)
|
| 16 |
-
|
| 17 |
-
# Get the current file path
|
| 18 |
-
old_file_path = os.path.join(root, file)
|
| 19 |
-
|
| 20 |
-
# Rename the file
|
| 21 |
-
os.rename(old_file_path, new_file_path)
|
| 22 |
-
print(f"Renamed {old_file_path} to {new_file_path}")
|
| 23 |
-
|
| 24 |
-
# Call the function to rename the annotation files
|
| 25 |
-
# rename_annotation_files()
|
| 26 |
-
|
| 27 |
-
print("All annotation files have been renamed successfully!")
|
| 28 |
-
|
| 29 |
-
# Directories to process
|
| 30 |
-
jpeg_images_dir = "/l/users/sahal.mullappilly/Komal/documents/Cell/CTCdataset/JPEGImages"
|
| 31 |
-
annotations_dir = "/l/users/sahal.mullappilly/Komal/documents/Cell/CTCdataset/Annotations"
|
| 32 |
-
|
| 33 |
-
# Function to rename files in a directory
|
| 34 |
-
def rename_files_in_directory(directory):
|
| 35 |
-
for root, dirs, files in os.walk(directory):
|
| 36 |
-
for file in files:
|
| 37 |
-
# Skip if file doesn't have the expected format (adjust this based on your requirements)
|
| 38 |
-
if file.endswith(".png") or file.endswith(".jpg"):
|
| 39 |
-
try:
|
| 40 |
-
# Extract the numeric part from the filename
|
| 41 |
-
num_str = file.lstrip('t').split('.')[0] # Remove 't' and split on the dot
|
| 42 |
-
new_name = f"{num_str}.png" if file.endswith(".png") else f"{num_str}.jpg"
|
| 43 |
-
|
| 44 |
-
# Define the old and new file paths
|
| 45 |
-
old_file_path = os.path.join(root, file)
|
| 46 |
-
new_file_path = os.path.join(root, new_name)
|
| 47 |
-
|
| 48 |
-
# Rename the file
|
| 49 |
-
os.rename(old_file_path, new_file_path)
|
| 50 |
-
print(f"Renamed: {old_file_path} -> {new_file_path}")
|
| 51 |
-
|
| 52 |
-
except Exception as e:
|
| 53 |
-
print(f"Error renaming {file}: {e}")
|
| 54 |
-
|
| 55 |
-
# Rename files in JPEGImages directory
|
| 56 |
-
rename_files_in_directory(jpeg_images_dir)
|
| 57 |
-
|
| 58 |
-
# Rename files in Annotations directory
|
| 59 |
-
rename_files_in_directory(annotations_dir)
|
| 60 |
-
|
| 61 |
-
print("File renaming completed!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CellCTC/convert_to_jpg.py
DELETED
|
@@ -1,82 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from PIL import Image
|
| 3 |
-
import numpy as np
|
| 4 |
-
|
| 5 |
-
# Base directory for the datasets
|
| 6 |
-
base_dir = "/l/users/sahal.mullappilly/Komal/documents/Cell/CTCdataset"
|
| 7 |
-
|
| 8 |
-
# List of datasets and their video folder names
|
| 9 |
-
datasets = [
|
| 10 |
-
{"dataset_name": "BF-C2DL-HSC", "subfolders": ["01", "02"]},
|
| 11 |
-
{"dataset_name": "BF-C2DL-MuSC", "subfolders": ["01", "02"]},
|
| 12 |
-
{"dataset_name": "DIC-C2DH-HeLa", "subfolders": ["01", "02"]},
|
| 13 |
-
{"dataset_name": "Fluo-C2DL-Huh7", "subfolders": ["01", "02"]},
|
| 14 |
-
{"dataset_name": "Fluo-C2DL-MSC", "subfolders": ["01", "02"]},
|
| 15 |
-
{"dataset_name": "Fluo-N2DH-GOWT1", "subfolders": ["01", "02"]},
|
| 16 |
-
{"dataset_name": "Fluo-N2DL-HeLa", "subfolders": ["01", "02"]},
|
| 17 |
-
{"dataset_name": "PhC-C2DH-U373", "subfolders": ["01", "02"]},
|
| 18 |
-
{"dataset_name": "PhC-C2DL-PSC", "subfolders": ["01", "02"]},
|
| 19 |
-
{"dataset_name": "Fluo-N2DH-SIM+", "subfolders": ["01", "02"]}
|
| 20 |
-
]
|
| 21 |
-
|
| 22 |
-
# Function to convert TIFF to JPG
|
| 23 |
-
def convert_tiff_to_jpg(tiff_path, jpg_path):
|
| 24 |
-
try:
|
| 25 |
-
# Open the tiff image using PIL
|
| 26 |
-
img = Image.open(tiff_path)
|
| 27 |
-
|
| 28 |
-
# Check if image is empty
|
| 29 |
-
if img.size == (0, 0):
|
| 30 |
-
print(f"Warning: {tiff_path} is empty. Skipping this file.")
|
| 31 |
-
return
|
| 32 |
-
|
| 33 |
-
# Check for bit depth and convert to 8-bit if necessary (normalize if > 8-bit)
|
| 34 |
-
if img.mode != 'RGB':
|
| 35 |
-
img = img.convert('RGB') # Convert to RGB if not already in that mode
|
| 36 |
-
|
| 37 |
-
# Convert the image to a NumPy array to normalize pixel values if necessary
|
| 38 |
-
img_array = np.array(img)
|
| 39 |
-
|
| 40 |
-
# Normalize if pixel values are outside the range of [0, 255] (for 16-bit or higher)
|
| 41 |
-
if img_array.max() > 255:
|
| 42 |
-
img_array = (img_array / img_array.max()) * 255 # Normalize to 0-255 range
|
| 43 |
-
img_array = img_array.astype(np.uint8)
|
| 44 |
-
|
| 45 |
-
# Save the image as JPG
|
| 46 |
-
img = Image.fromarray(img_array)
|
| 47 |
-
img.save(jpg_path, 'JPEG')
|
| 48 |
-
print(f"Converted {tiff_path} to {jpg_path}")
|
| 49 |
-
except Exception as e:
|
| 50 |
-
print(f"Error converting {tiff_path}: {e}")
|
| 51 |
-
|
| 52 |
-
# Function to process dataset
|
| 53 |
-
def process_dataset(dataset_name, subfolders):
|
| 54 |
-
# Path for the main "JPEGImages" folder where all images will be stored
|
| 55 |
-
main_jpeg_dir = os.path.join(base_dir, "JPEGImages")
|
| 56 |
-
os.makedirs(main_jpeg_dir, exist_ok=True)
|
| 57 |
-
|
| 58 |
-
for subfolder in subfolders:
|
| 59 |
-
# Paths for the subfolder
|
| 60 |
-
input_folder = os.path.join(base_dir, "datasets", dataset_name, subfolder)
|
| 61 |
-
output_folder = os.path.join(main_jpeg_dir, f"{dataset_name}-{subfolder}")
|
| 62 |
-
|
| 63 |
-
# Create output directory for each subfolder inside "JPEGImages"
|
| 64 |
-
os.makedirs(output_folder, exist_ok=True)
|
| 65 |
-
|
| 66 |
-
# Process each .tif file in the subfolder
|
| 67 |
-
for root, dirs, files in os.walk(input_folder):
|
| 68 |
-
for file in files:
|
| 69 |
-
if file.endswith(".tif"):
|
| 70 |
-
tiff_path = os.path.join(root, file)
|
| 71 |
-
# Define the path for the new jpg file
|
| 72 |
-
jpg_filename = file.replace(".tif", ".jpg")
|
| 73 |
-
jpg_path = os.path.join(output_folder, jpg_filename)
|
| 74 |
-
|
| 75 |
-
# Convert .tif to .jpg
|
| 76 |
-
convert_tiff_to_jpg(tiff_path, jpg_path)
|
| 77 |
-
|
| 78 |
-
# Process each dataset
|
| 79 |
-
for dataset in datasets:
|
| 80 |
-
process_dataset(dataset["dataset_name"], dataset["subfolders"])
|
| 81 |
-
|
| 82 |
-
print("All TIFF images converted to JPG and saved in the 'JPEGImages' folder!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CellCTC/download.py
DELETED
|
@@ -1,90 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
import requests
|
| 3 |
-
from tqdm import tqdm
|
| 4 |
-
|
| 5 |
-
# Define the dataset details
|
| 6 |
-
datasets = [
|
| 7 |
-
{
|
| 8 |
-
"name": "BF-C2DL-HSC",
|
| 9 |
-
"url": "http://data.celltrackingchallenge.net/training-datasets/BF-C2DL-HSC.zip",
|
| 10 |
-
"size": "1.6 GB"
|
| 11 |
-
},
|
| 12 |
-
{
|
| 13 |
-
"name": "BF-C2DL-MuSC",
|
| 14 |
-
"url": "http://data.celltrackingchallenge.net/training-datasets/BF-C2DL-MuSC.zip",
|
| 15 |
-
"size": "1.2 GB"
|
| 16 |
-
},
|
| 17 |
-
{
|
| 18 |
-
"name": "DIC-C2DH-HeLa",
|
| 19 |
-
"url": "http://data.celltrackingchallenge.net/training-datasets/DIC-C2DH-HeLa.zip",
|
| 20 |
-
"size": "37 MB"
|
| 21 |
-
},
|
| 22 |
-
{
|
| 23 |
-
"name": "Fluo-C2DL-Huh7",
|
| 24 |
-
"url": "http://data.celltrackingchallenge.net/training-datasets/Fluo-C2DL-Huh7.zip",
|
| 25 |
-
"size": "36 MB"
|
| 26 |
-
},
|
| 27 |
-
{
|
| 28 |
-
"name": "Fluo-C2DL-MSC",
|
| 29 |
-
"url": "http://data.celltrackingchallenge.net/training-datasets/Fluo-C2DL-MSC.zip",
|
| 30 |
-
"size": "72 MB"
|
| 31 |
-
},
|
| 32 |
-
{
|
| 33 |
-
"name": "Fluo-N2DH-GOWT1",
|
| 34 |
-
"url": "http://data.celltrackingchallenge.net/training-datasets/Fluo-N2DH-GOWT1.zip",
|
| 35 |
-
"size": "53 MB"
|
| 36 |
-
},
|
| 37 |
-
{
|
| 38 |
-
"name": "Fluo-N2DL-HeLa",
|
| 39 |
-
"url": "http://data.celltrackingchallenge.net/training-datasets/Fluo-N2DL-HeLa.zip",
|
| 40 |
-
"size": "182 MB"
|
| 41 |
-
},
|
| 42 |
-
{
|
| 43 |
-
"name": "PhC-C2DH-U373",
|
| 44 |
-
"url": "http://data.celltrackingchallenge.net/training-datasets/PhC-C2DH-U373.zip",
|
| 45 |
-
"size": "40 MB"
|
| 46 |
-
},
|
| 47 |
-
{
|
| 48 |
-
"name": "PhC-C2DL-PSC",
|
| 49 |
-
"url": "http://data.celltrackingchallenge.net/training-datasets/PhC-C2DL-PSC.zip",
|
| 50 |
-
"size": "124 MB"
|
| 51 |
-
},
|
| 52 |
-
{
|
| 53 |
-
"name": "Fluo-N2DH-SIM+",
|
| 54 |
-
"url": "http://data.celltrackingchallenge.net/training-datasets/Fluo-N2DH-SIM+.zip",
|
| 55 |
-
"size": "91 MB"
|
| 56 |
-
}
|
| 57 |
-
]
|
| 58 |
-
|
| 59 |
-
# Directory where you want to save the datasets
|
| 60 |
-
base_dir = "./CTCdataset"
|
| 61 |
-
|
| 62 |
-
# Function to download dataset
|
| 63 |
-
def download_dataset(url, save_path):
|
| 64 |
-
print(f"Downloading {url} to {save_path}")
|
| 65 |
-
response = requests.get(url, stream=True)
|
| 66 |
-
total_size = int(response.headers.get('Content-Length', 0))
|
| 67 |
-
with open(save_path, 'wb') as f:
|
| 68 |
-
with tqdm(total=total_size, unit='B', unit_scale=True) as pbar:
|
| 69 |
-
for chunk in response.iter_content(chunk_size=1024):
|
| 70 |
-
if chunk:
|
| 71 |
-
f.write(chunk)
|
| 72 |
-
pbar.update(len(chunk))
|
| 73 |
-
|
| 74 |
-
# Create the base directory if it doesn't exist
|
| 75 |
-
os.makedirs(base_dir, exist_ok=True)
|
| 76 |
-
|
| 77 |
-
# Download all datasets
|
| 78 |
-
for dataset in datasets:
|
| 79 |
-
dataset_dir = os.path.join(base_dir, dataset["name"])
|
| 80 |
-
os.makedirs(dataset_dir, exist_ok=True)
|
| 81 |
-
|
| 82 |
-
# Define the path where the zip file will be saved
|
| 83 |
-
zip_file_path = os.path.join(dataset_dir, f"{dataset['name']}.zip")
|
| 84 |
-
|
| 85 |
-
# Download the dataset
|
| 86 |
-
download_dataset(dataset["url"], zip_file_path)
|
| 87 |
-
|
| 88 |
-
print(f"Dataset {dataset['name']} downloaded successfully!")
|
| 89 |
-
|
| 90 |
-
print("All datasets downloaded successfully!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CellCTC/extract.py
DELETED
|
@@ -1,39 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
import zipfile
|
| 3 |
-
|
| 4 |
-
# Define the dataset names
|
| 5 |
-
datasets = [
|
| 6 |
-
"BF-C2DL-HSC",
|
| 7 |
-
"BF-C2DL-MuSC",
|
| 8 |
-
"DIC-C2DH-HeLa",
|
| 9 |
-
"Fluo-C2DL-Huh7",
|
| 10 |
-
"Fluo-C2DL-MSC",
|
| 11 |
-
"Fluo-N2DH-GOWT1",
|
| 12 |
-
"Fluo-N2DL-HeLa",
|
| 13 |
-
"PhC-C2DH-U373",
|
| 14 |
-
"PhC-C2DL-PSC",
|
| 15 |
-
"Fluo-N2DH-SIM+"
|
| 16 |
-
]
|
| 17 |
-
|
| 18 |
-
# Directory where the datasets are stored
|
| 19 |
-
base_dir = "/l/users/sahal.mullappilly/Komal/documents/Cell/CTCdataset"
|
| 20 |
-
|
| 21 |
-
# Function to extract dataset
|
| 22 |
-
def extract_zip(zip_path, extract_to):
|
| 23 |
-
print(f"Extracting {zip_path} to {extract_to}")
|
| 24 |
-
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
|
| 25 |
-
zip_ref.extractall(extract_to)
|
| 26 |
-
print(f"Extraction complete for {zip_path}!")
|
| 27 |
-
|
| 28 |
-
# Extract all datasets
|
| 29 |
-
for dataset in datasets:
|
| 30 |
-
dataset_dir = os.path.join(base_dir, dataset)
|
| 31 |
-
zip_file_path = os.path.join(dataset_dir, f"{dataset}.zip")
|
| 32 |
-
|
| 33 |
-
# Extract the dataset
|
| 34 |
-
if os.path.exists(zip_file_path):
|
| 35 |
-
extract_zip(zip_file_path, dataset_dir)
|
| 36 |
-
else:
|
| 37 |
-
print(f"Zip file for {dataset} not found!")
|
| 38 |
-
|
| 39 |
-
print("All datasets extracted successfully!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CellCTC/frames/Fluo-C2DL-Huh7-01/000.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/001.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/002.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/003.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/004.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/005.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/006.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/007.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/008.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/009.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/010.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/011.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/012.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/013.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/014.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/015.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/016.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/017.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/018.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/019.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/020.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/021.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/022.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/023.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/024.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/025.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/026.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/027.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/028.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-01/029.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/000.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/001.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/002.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/003.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/004.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/005.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/006.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/007.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/008.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/009.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/010.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/011.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/012.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/013.jpg
DELETED
Git LFS Details
|
CellCTC/frames/Fluo-C2DL-Huh7-02/014.jpg
DELETED
Git LFS Details
|