Spaces:
Sleeping
Sleeping
efengx
commited on
Commit
·
de5ad1a
1
Parent(s):
d5b8eea
fix: update
Browse files- fengx_launch.ipynb +7 -7
- fengxai/SelfSupervised.py +11 -0
fengx_launch.ipynb
CHANGED
@@ -33,21 +33,21 @@
|
|
33 |
},
|
34 |
{
|
35 |
"cell_type": "code",
|
36 |
-
"execution_count":
|
37 |
"metadata": {},
|
38 |
"outputs": [
|
39 |
{
|
40 |
"name": "stdout",
|
41 |
"output_type": "stream",
|
42 |
"text": [
|
43 |
-
"Enumerating objects:
|
44 |
-
"Counting objects: 100% (
|
45 |
"Delta compression using up to 8 threads\n",
|
46 |
-
"Compressing objects: 100% (
|
47 |
-
"Writing objects: 100% (
|
48 |
-
"Total
|
49 |
"To https://huggingface.co/spaces/rjx/rjxai_image_identification\n",
|
50 |
-
"
|
51 |
]
|
52 |
}
|
53 |
],
|
|
|
33 |
},
|
34 |
{
|
35 |
"cell_type": "code",
|
36 |
+
"execution_count": 14,
|
37 |
"metadata": {},
|
38 |
"outputs": [
|
39 |
{
|
40 |
"name": "stdout",
|
41 |
"output_type": "stream",
|
42 |
"text": [
|
43 |
+
"Enumerating objects: 9, done.\n",
|
44 |
+
"Counting objects: 100% (9/9), done.\n",
|
45 |
"Delta compression using up to 8 threads\n",
|
46 |
+
"Compressing objects: 100% (5/5), done.\n",
|
47 |
+
"Writing objects: 100% (5/5), 681 bytes | 681.00 KiB/s, done.\n",
|
48 |
+
"Total 5 (delta 4), reused 0 (delta 0), pack-reused 0\n",
|
49 |
"To https://huggingface.co/spaces/rjx/rjxai_image_identification\n",
|
50 |
+
" 4dcf678..d5b8eea main -> main\n"
|
51 |
]
|
52 |
}
|
53 |
],
|
fengxai/SelfSupervised.py
CHANGED
@@ -74,6 +74,17 @@ class SelfSupervised:
|
|
74 |
os.mkdir(fileList)
|
75 |
cv2.imwrite(imageOutPutFile, imgAnnnotated)
|
76 |
print("os cwd=", os.getcwd())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
return {
|
79 |
"imageOutput": imageOutPutFile,
|
|
|
74 |
os.mkdir(fileList)
|
75 |
cv2.imwrite(imageOutPutFile, imgAnnnotated)
|
76 |
print("os cwd=", os.getcwd())
|
77 |
+
for root, dirs, files in os.walk(os.getcwd()):
|
78 |
+
print("root=", root)
|
79 |
+
print("dirs=", dirs)
|
80 |
+
print("files=", files)
|
81 |
+
|
82 |
+
print("data=")
|
83 |
+
for root, dirs, files in os.walk("data/"):
|
84 |
+
print("root=", root)
|
85 |
+
print("dirs=", dirs)
|
86 |
+
print("files=", files)
|
87 |
+
|
88 |
|
89 |
return {
|
90 |
"imageOutput": imageOutPutFile,
|