Spaces:
Runtime error
Runtime error
HAMIM-ML
commited on
Commit
·
c426c7f
1
Parent(s):
7a54acd
git action added
Browse filesrequirements updated
.github/{main.yaml → main.yml}
RENAMED
@@ -1,21 +1,20 @@
|
|
1 |
-
name: Sync to Hugging Face
|
2 |
|
3 |
on:
|
4 |
push:
|
5 |
branches: [main]
|
|
|
|
|
6 |
workflow_dispatch:
|
7 |
|
8 |
jobs:
|
9 |
sync-to-hub:
|
10 |
runs-on: ubuntu-latest
|
11 |
steps:
|
12 |
-
- uses: actions/checkout@
|
13 |
with:
|
14 |
fetch-depth: 0
|
15 |
-
- name: Push to
|
16 |
env:
|
17 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
18 |
-
run:
|
19 |
-
git config --global user.email "[email protected]"
|
20 |
-
git config --global user.name "HAKIM-ML"
|
21 |
-
git push --force https://Md-Hakim:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Md-Hakim/image-colorization-mlops main
|
|
|
1 |
+
name: Sync to Hugging Face hub
|
2 |
|
3 |
on:
|
4 |
push:
|
5 |
branches: [main]
|
6 |
+
|
7 |
+
# to run this workflow manually from the Actions tab
|
8 |
workflow_dispatch:
|
9 |
|
10 |
jobs:
|
11 |
sync-to-hub:
|
12 |
runs-on: ubuntu-latest
|
13 |
steps:
|
14 |
+
- uses: actions/checkout@v2
|
15 |
with:
|
16 |
fetch-depth: 0
|
17 |
+
- name: Push to hub
|
18 |
env:
|
19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
+
run: git push --force https://Md-Hakim:[email protected]/spaces/Md-Hakim/image-colorization-mlops main
|
|
|
|
|
|
lightning_logs/version_42/events.out.tfevents.1724776105.Hakim.64492.0
ADDED
Binary file (683 Bytes). View file
|
|
lightning_logs/version_42/hparams.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
display_step: 11
|
2 |
+
in_channels: 1
|
3 |
+
lambda_gp: 10
|
4 |
+
lambda_r1: 10
|
5 |
+
lambda_recon: 100
|
6 |
+
learning_rate: 2.0e-05
|
7 |
+
out_channels: 2
|
main.py
CHANGED
@@ -53,14 +53,14 @@ except Exception as e:
|
|
53 |
|
54 |
|
55 |
|
56 |
-
STAGE_NAME = 'Model Evaluation Stage'
|
57 |
|
58 |
-
try:
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
except Exception as e:
|
64 |
-
|
65 |
-
|
66 |
|
|
|
53 |
|
54 |
|
55 |
|
56 |
+
# STAGE_NAME = 'Model Evaluation Stage'
|
57 |
|
58 |
+
# try:
|
59 |
+
# logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
|
60 |
+
# model_trianer = ModelEvaluationPipeLine()
|
61 |
+
# model_trianer.main()
|
62 |
+
# logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
|
63 |
+
# except Exception as e:
|
64 |
+
# logger.exception(e)
|
65 |
+
# raise e
|
66 |
|
requirements.txt
CHANGED
@@ -20,6 +20,10 @@ opencv-python==4.8.0.74
|
|
20 |
Pillow==10.0.0
|
21 |
scikit-image
|
22 |
tqdm
|
23 |
-
|
|
|
|
|
|
|
|
|
24 |
|
25 |
|
|
|
20 |
Pillow==10.0.0
|
21 |
scikit-image
|
22 |
tqdm
|
23 |
+
torchvision
|
24 |
+
skimage
|
25 |
+
pytorch_lightning
|
26 |
+
gc
|
27 |
+
scipy
|
28 |
|
29 |
|