Jagadeesh9580 commited on
Commit
1477f86
Β·
verified Β·
1 Parent(s): fa826a4

Uploading results πŸš€

Browse files
results/pushToHuggingFace.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import create_repo, upload_folder
2
+ import os
3
+
4
+ # Set your Hugging Face repo details here
5
+ repo_id = "Jagadeesh9580/unlearn" # πŸ‘ˆ update this if needed
6
+ local_folder = "./results" # Local folder to push
7
+ repo_type = "model" # It's a model repo
8
+
9
+ # Check if folder exists
10
+ if not os.path.exists(local_folder):
11
+ raise ValueError(f"Local folder '{local_folder}' does not exist!")
12
+
13
+
14
+ # 2. Upload the folder
15
+ upload_folder(
16
+ folder_path=local_folder,
17
+ path_in_repo="results", # Inside Hugging Face repo -> under /results
18
+ repo_id=repo_id,
19
+ repo_type=repo_type,
20
+ commit_message="Uploading results πŸš€",
21
+ )
22
+
23
+ print(f"βœ… Successfully pushed '{local_folder}' to Hugging Face repo '{repo_id}'!")
results/test_results.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Abyssinian": 100.0,
3
+ "American Bulldog": 75.0,
4
+ "American Pit Bull Terrier": 70.0,
5
+ "Basset Hound": 100.0,
6
+ "Beagle": 100.0,
7
+ "Bengal": 66.66666666666667,
8
+ "Birman": 83.33333333333333,
9
+ "Bombay": 100.0,
10
+ "Boxer": 100.0,
11
+ "British Shorthair": 66.66666666666667,
12
+ "Chihuahua": 81.81818181818181,
13
+ "Egyptian Mau": 100.0,
14
+ "English Cocker Spaniel": 100.0,
15
+ "English Setter": 91.66666666666667,
16
+ "German Shorthaired": 100.0,
17
+ "Great Pyrenees": 100.0,
18
+ "Havanese": 100.0,
19
+ "Japanese Chin": 100.0,
20
+ "Keeshond": 100.0,
21
+ "Leonberger": 100.0,
22
+ "Maine Coon": 100.0,
23
+ "Miniature Pinscher": 100.0,
24
+ "Newfoundland": 100.0,
25
+ "Persian": 100.0,
26
+ "Pomeranian": 100.0,
27
+ "Pug": 100.0,
28
+ "Ragdoll": 92.85714285714286,
29
+ "Russian Blue": 100.0,
30
+ "Saint Bernard": 100.0,
31
+ "Samoyed": 100.0,
32
+ "Scottish Terrier": 92.85714285714286,
33
+ "Shiba Inu": 100.0,
34
+ "Siamese": 91.66666666666667,
35
+ "Sphynx": 100.0,
36
+ "Staffordshire Bull Terrier": 100.0,
37
+ "Wheaten Terrier": 100.0,
38
+ "Yorkshire Terrier": 100.0
39
+ }
results/vit_pets_best.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57ef08cd8eaeb94bb7c99521ae53370b99e1f283a90e4bb279ce5a5f531db233
3
+ size 343389738