File size: 1,278 Bytes
71c32d5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

import os

# Directories
DATA_DIR = "data"
IMAGE_DIR = os.path.join(DATA_DIR, "core_images")
MODEL_DIR = "models"
OUTPUT_DIR = "output"

# Create directories if they don't exist
os.makedirs(IMAGE_DIR, exist_ok=True)
os.makedirs(MODEL_DIR, exist_ok=True)
os.makedirs(OUTPUT_DIR, exist_ok=True)

# Model parameters - adaptive to data size
NUM_CLUSTERS = 3  # Reduced default
IMAGE_SIZE = (224, 224)
BATCH_SIZE = 32

# Candidate labels for classification
CANDIDATE_LABELS = [
    "gold-bearing rock",
    "iron-rich rock",
    "lithium-rich rock",
    "copper-bearing rock",
    "waste rock",
    "quartz-rich rock",
    "sulfide-rich rock"
]

# Public geology repositories
DATASET_SOURCES = [
    {
        "name": "Geoscience Australia",
        "url": "https://geology.csiro.au/datasets/drill-core-images",
        "description": "Australian geological survey drill core images"
    },
    {
        "name": "USGS Mineral Resources",
        "url": "https://mrdata.usgs.gov/geology/state/map-viewer.php",
        "description": "US Geological Survey mineral resources data"
    },
    {
        "name": "BGS OpenGeoscience",
        "url": "https://www.bgs.ac.uk/discovering-geology/rock-library/",
        "description": "British Geological Survey rock sample images"
    }
]