Delete solar_models
Browse files
solar_models/requirements.txt
DELETED
|
@@ -1,133 +0,0 @@
|
|
| 1 |
-
Package Version
|
| 2 |
-
------------------------ -----------
|
| 3 |
-
absl-py 2.1.0
|
| 4 |
-
affine 2.3.1
|
| 5 |
-
appnope 0.1.3
|
| 6 |
-
asttokens 2.2.1
|
| 7 |
-
attrs 22.1.0
|
| 8 |
-
backcall 0.2.0
|
| 9 |
-
brewer2mpl 1.4.1
|
| 10 |
-
certifi 2022.12.7
|
| 11 |
-
charset-normalizer 2.1.1
|
| 12 |
-
clarabel 0.7.1
|
| 13 |
-
click 8.1.3
|
| 14 |
-
click-plugins 1.1.1
|
| 15 |
-
cligj 0.7.2
|
| 16 |
-
comm 0.1.2
|
| 17 |
-
contextily 1.2.0
|
| 18 |
-
contourpy 1.0.6
|
| 19 |
-
cvxpy 1.4.3
|
| 20 |
-
cycler 0.11.0
|
| 21 |
-
debugpy 1.6.4
|
| 22 |
-
decorator 5.1.1
|
| 23 |
-
deepdiff 7.0.1
|
| 24 |
-
ecos 2.0.13
|
| 25 |
-
entrypoints 0.4
|
| 26 |
-
et-xmlfile 1.1.0
|
| 27 |
-
executing 1.2.0
|
| 28 |
-
filelock 3.16.1
|
| 29 |
-
Fiona 1.8.22
|
| 30 |
-
fonttools 4.38.0
|
| 31 |
-
fsspec 2024.10.0
|
| 32 |
-
gcloud 0.18.3
|
| 33 |
-
geographiclib 2.0
|
| 34 |
-
geopandas 0.12.1
|
| 35 |
-
geopy 2.3.0
|
| 36 |
-
ggplot 0.11.5
|
| 37 |
-
googleapis-common-protos 1.58.0
|
| 38 |
-
httplib2 0.21.0
|
| 39 |
-
huggingface-hub 0.26.2
|
| 40 |
-
idna 3.4
|
| 41 |
-
importlib_metadata 7.1.0
|
| 42 |
-
ipykernel 6.19.2
|
| 43 |
-
ipython 8.7.0
|
| 44 |
-
jax 0.4.28
|
| 45 |
-
jax-metal 0.0.7
|
| 46 |
-
jaxlib 0.4.28
|
| 47 |
-
jedi 0.18.2
|
| 48 |
-
Jinja2 3.1.4
|
| 49 |
-
joblib 1.2.0
|
| 50 |
-
jupyter_client 7.4.8
|
| 51 |
-
jupyter_core 5.1.0
|
| 52 |
-
kiwisolver 1.4.4
|
| 53 |
-
MarkupSafe 3.0.2
|
| 54 |
-
matplotlib 3.6.2
|
| 55 |
-
matplotlib-inline 0.1.6
|
| 56 |
-
mercantile 1.2.1
|
| 57 |
-
mizani 0.8.1
|
| 58 |
-
ml-dtypes 0.2.0
|
| 59 |
-
mpmath 1.3.0
|
| 60 |
-
munch 2.5.0
|
| 61 |
-
nest-asyncio 1.5.6
|
| 62 |
-
networkx 3.2.1
|
| 63 |
-
numpy 1.23.5
|
| 64 |
-
oauth2client 4.1.3
|
| 65 |
-
opencv-contrib-python 4.9.0.80
|
| 66 |
-
opencv-python 4.9.0.80
|
| 67 |
-
openpyxl 3.0.10
|
| 68 |
-
opt-einsum 3.3.0
|
| 69 |
-
ordered-set 4.1.0
|
| 70 |
-
osqp 0.6.5
|
| 71 |
-
packaging 22.0
|
| 72 |
-
palettable 3.3.0
|
| 73 |
-
pandapower 2.14.6
|
| 74 |
-
pandas 2.2.2
|
| 75 |
-
parso 0.8.3
|
| 76 |
-
patsy 0.5.3
|
| 77 |
-
pexpect 4.8.0
|
| 78 |
-
pickleshare 0.7.5
|
| 79 |
-
Pillow 9.3.0
|
| 80 |
-
pip 22.1.1
|
| 81 |
-
platformdirs 2.6.0
|
| 82 |
-
plotnine 0.10.1
|
| 83 |
-
prompt-toolkit 3.0.36
|
| 84 |
-
protobuf 4.21.12
|
| 85 |
-
psutil 5.9.4
|
| 86 |
-
ptyprocess 0.7.0
|
| 87 |
-
pure-eval 0.2.2
|
| 88 |
-
pyarrow 10.0.1
|
| 89 |
-
pyasn1 0.4.8
|
| 90 |
-
pyasn1-modules 0.2.8
|
| 91 |
-
pybind11 2.12.0
|
| 92 |
-
Pygments 2.13.0
|
| 93 |
-
pyparsing 3.0.9
|
| 94 |
-
pyproj 3.4.0
|
| 95 |
-
python-dateutil 2.8.2
|
| 96 |
-
pytz 2022.6
|
| 97 |
-
PyYAML 6.0.2
|
| 98 |
-
pyzmq 24.0.1
|
| 99 |
-
qdldl 0.1.7.post2
|
| 100 |
-
rasterio 1.3.4
|
| 101 |
-
regex 2024.11.6
|
| 102 |
-
requests 2.28.1
|
| 103 |
-
rsa 4.9
|
| 104 |
-
safetensors 0.4.5
|
| 105 |
-
scikit-learn 1.2.0
|
| 106 |
-
scipy 1.11.4
|
| 107 |
-
scs 3.2.4.post1
|
| 108 |
-
seaborn 0.12.2
|
| 109 |
-
setuptools 62.3.2
|
| 110 |
-
Shapely 1.8.5.post1
|
| 111 |
-
six 1.16.0
|
| 112 |
-
sklearn 0.0.post1
|
| 113 |
-
snuggs 1.4.7
|
| 114 |
-
stack-data 0.6.2
|
| 115 |
-
statsmodels 0.13.5
|
| 116 |
-
sympy 1.13.3
|
| 117 |
-
threadpoolctl 3.1.0
|
| 118 |
-
tokenizers 0.20.3
|
| 119 |
-
torch 2.2.2
|
| 120 |
-
torchaudio 2.2.2
|
| 121 |
-
torchvision 0.17.2
|
| 122 |
-
tornado 6.2
|
| 123 |
-
tqdm 4.66.4
|
| 124 |
-
traitlets 5.7.0
|
| 125 |
-
transformers 4.46.3
|
| 126 |
-
typing_extensions 4.12.2
|
| 127 |
-
tzdata 2024.1
|
| 128 |
-
urllib3 1.26.13
|
| 129 |
-
wcwidth 0.2.5
|
| 130 |
-
wheel 0.43.0
|
| 131 |
-
xarray 2024.3.0
|
| 132 |
-
xyzservices 2022.9.0
|
| 133 |
-
zipp 3.18.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
solar_models/src/dataloader_file.py
DELETED
|
@@ -1,44 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
import cv2
|
| 3 |
-
import time
|
| 4 |
-
from tqdm import tqdm
|
| 5 |
-
import random
|
| 6 |
-
import numpy as np
|
| 7 |
-
import pandas as pd
|
| 8 |
-
import argparse
|
| 9 |
-
import PIL
|
| 10 |
-
from PIL import Image
|
| 11 |
-
import torch
|
| 12 |
-
from torch.utils.data import Dataset, DataLoader
|
| 13 |
-
import torch.nn as nn
|
| 14 |
-
import torch.nn.functional as F
|
| 15 |
-
from torchvision import datasets, models, transforms, utils
|
| 16 |
-
from torchvision.transforms import Normalize
|
| 17 |
-
|
| 18 |
-
random.seed(42)
|
| 19 |
-
np.random.seed(42)
|
| 20 |
-
|
| 21 |
-
class ImageFolder(Dataset):
|
| 22 |
-
def __init__(self, root_dir, transform):
|
| 23 |
-
self.root_dir = root_dir
|
| 24 |
-
self.image_list = [f for f in os.listdir(root_dir) if f[-4:] in ['.png', '.jpg', 'JPEG', 'jpeg']] # Change the extension as needed
|
| 25 |
-
self.transform = transform
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
def __len__(self):
|
| 29 |
-
return len(self.image_list)
|
| 30 |
-
|
| 31 |
-
def __getitem__(self, idx):
|
| 32 |
-
img_name = self.image_list[idx]
|
| 33 |
-
img_path = os.path.join(self.root_dir, img_name)
|
| 34 |
-
try:
|
| 35 |
-
img = Image.open(img_path).convert('RGB')
|
| 36 |
-
img = np.asarray(img)
|
| 37 |
-
if self.transform:
|
| 38 |
-
img = self.transform(img)
|
| 39 |
-
return img, img_path
|
| 40 |
-
|
| 41 |
-
except PIL.UnidentifiedImageError as e:
|
| 42 |
-
print(f"Error in file {img_path}: {e}")
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
solar_models/src/inference.ipynb
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|