File size: 1,999 Bytes
0362b22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import os
from dataclasses import dataclass


### define all app-wide configuration here,
### should not be accessed and changed directly hence leading "__"
@dataclass
class __AppConfig:
    """app-wide configurations"""

    title = "Computer Vision - Landmark Classifier"
    theme = "freddyaboulton/dracula_revamped"
    hf_repo_id = "sssingh/landmark-classifier-pt"
    hf_weights_file = "model_transfer.pt"
    css = "style.css"
    model = None
    classes = [
        "Haleakala_National_Park",
        "Mount_Rainier_National_Park",
        "Ljubljana_Castle",
        "Dead_Sea",
        "Wroclaws_Dwarves",
        "London_Olympic_Stadium",
        "Niagara_Falls",
        "Stonehenge",
        "Grand_Canyon",
        "Golden_Gate_Bridge",
        "Edinburgh_Castle",
        "Mount_Rushmore_National_Memorial",
        "Kantanagar_Temple",
        "Yellowstone_National_Park",
        "Terminal_Tower",
        "Central_Park",
        "Eiffel_Tower",
        "Changdeokgung",
        "Delicate_Arch",
        "Vienna_City_Hall",
        "Matterhorn",
        "Taj_Mahal",
        "Moscow_Raceway",
        "Externsteine",
        "Soreq_Cave",
        "Banff_National_Park",
        "Pont_du_Gard",
        "Seattle_Japanese_Garden",
        "Sydney_Harbour_Bridge",
        "Petronas_Towers",
        "Brooklyn_Bridge",
        "Washington_Monument",
        "Hanging_Temple",
        "Sydney_Opera_House",
        "Great_Barrier_Reef",
        "Monumento_a_la_Revolucion",
        "Badlands_National_Park",
        "Atomium",
        "Forth_Bridge",
        "Gateway_of_India",
        "Stockholm_City_Hall",
        "Machu_Picchu",
        "Death_Valley_National_Park",
        "Gullfoss_Falls",
        "Trevi_Fountain",
        "Temple_of_Heaven",
        "Great_Wall_of_China",
        "Prague_Astronomical_Clock",
        "Whitby_Abbey",
        "Temple_of_Olympian_Zeus",
    ]
    mean = [0.4624, 0.4711, 0.4668]
    std = [0.2592, 0.2600, 0.2925]


app_config = __AppConfig()