Skip to content

Commit 2587d8f

Browse files
authored
Merge pull request #37 from HamedDaneshvar/refactor
Refactor Image classification
2 parents 29a7865 + 7310a6b commit 2587d8f

11 files changed

+17297
-1087
lines changed

examples/Image_Classification_Examples/XWhy_Image_classification.ipynb

Lines changed: 5257 additions & 0 deletions
Large diffs are not rendered by default.

examples/Image_Classification_Examples/XWhy_Image_classification.py

Lines changed: 1788 additions & 0 deletions
Large diffs are not rendered by default.
615 KB
Loading
54.2 KB
Loading
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
numpy~=2.0.2
2+
pandas~=2.2.2
3+
scipy~=1.16.3
4+
transformers~=4.57.2
5+
torch~=2.9.0
6+
torchvision~=0.24.0
7+
scikit-image~=0.25.2
8+
scikit-learn~=1.6.1
9+
pillow~=11.3.0
10+
matplotlib~=3.10.0
11+
tqdm~=4.67.1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GEMINI_API_KEY="YOUR-API-KEY"
2+
OPENAI_API_KEY="YOUR-API-KEY"
3+
ARK_API_KEY="YOUR-API-KEY"

examples/Pix2Pix_Instruct/SMILE_for_Instruction_based_Image_Editing.ipynb

Lines changed: 3999 additions & 639 deletions
Large diffs are not rendered by default.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[project]
2+
name = "pix2pix"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"accelerate~=1.12.0",
9+
"diffusers~=0.35.2",
10+
"gensim~=4.4.0",
11+
"google-genai~=1.54.0",
12+
"img2img-turbo~=0.0.1",
13+
"kaleido>=1.2.0",
14+
"matplotlib~=3.10.0",
15+
"numpy~=2.0.2",
16+
"openai>=2.11.0",
17+
"opencv-python~=4.12.0.88",
18+
"pandas~=2.2.2",
19+
"pillow~=11.3.0",
20+
"plotly>=6.5.0",
21+
"pot~=0.9.6",
22+
"python-dotenv~=1.2.1",
23+
"requests~=2.32.4",
24+
"safetensors~=0.7.0",
25+
"scikit-learn~=1.6.1",
26+
"scipy~=1.16.3",
27+
"sentence-transformers~=5.1.2",
28+
"tiktoken~=0.12.0",
29+
"torch~=2.9.0",
30+
"torchvision~=0.24.0",
31+
"transformers~=4.57.2",
32+
"xgboost~=3.1.2",
33+
]

examples/Pix2Pix_Instruct/requirements.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,15 @@ opencv-python~=4.12.0.88
1111
scikit-learn~=1.6.1
1212
matplotlib~=3.10.0
1313
gensim~=4.4.0
14-
pot~=0.9.6
14+
pot~=0.9.6
15+
python-dotenv~=1.2.1
16+
google-genai~=1.55.0
17+
xgboost~=3.1.2
18+
openai~=2.11.0
19+
tiktoken~=0.12.0
20+
accelerate~=1.12.0
21+
diffusers~=0.35.2
22+
safetensors~=0.7.0
23+
torchvision~=0.24.0
24+
plotly~=6.5.0
25+
kaleido~=1.2.0

0 commit comments

Comments
 (0)