Datasets:
Formats:
webdataset
Size:
1M - 10M
Tags:
sgt
semantic-generative-tuning
unified-multimodal
image-segmentation
visual-understanding
visual-generation
License:
Upload file_names batch 1/1 (13 files)
Browse files- .gitattributes +2 -0
- file_names/image_filename.py +37 -0
- file_names/image_files_0.txt +0 -0
- file_names/image_files_100000.txt +0 -0
- file_names/image_files_120000.txt +0 -0
- file_names/image_files_140000.txt +0 -0
- file_names/image_files_160000.txt +0 -0
- file_names/image_files_180000.txt +0 -0
- file_names/image_files_20000.txt +0 -0
- file_names/image_files_40000.txt +0 -0
- file_names/image_files_60000.txt +0 -0
- file_names/image_files_80000.txt +0 -0
- file_names/sam_190k.txt +3 -0
- file_names/sam_190k_new.txt +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
file_names/sam_190k.txt filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
file_names/sam_190k_new.txt filter=lfs diff=lfs merge=lfs -text
|
file_names/image_filename.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
def find_image_files(directory, output_prefix):
|
| 4 |
+
# 定义常见的图片文件扩展名
|
| 5 |
+
image_extensions = ['.jpg', '.jpeg', '.png', '.bmp', '.gif', '.tiff']
|
| 6 |
+
|
| 7 |
+
# 初始化计数器和文件名
|
| 8 |
+
file_count = 0
|
| 9 |
+
output_file = f"{output_prefix}_{file_count}.txt"
|
| 10 |
+
|
| 11 |
+
# 打开第一个输出文件
|
| 12 |
+
with open(output_file, 'w') as f:
|
| 13 |
+
# 遍历指定目录及其子目录中的所有文件
|
| 14 |
+
for root, dirs, files in os.walk(directory):
|
| 15 |
+
for file in files:
|
| 16 |
+
# 获取文件的完整路径
|
| 17 |
+
file_path = os.path.join(root, file)
|
| 18 |
+
# 获取文件的扩展名
|
| 19 |
+
file_extension = os.path.splitext(file_path)[1].lower()
|
| 20 |
+
# 检查文件扩展名是否在图片文件扩展名列表中
|
| 21 |
+
if file_extension in image_extensions:
|
| 22 |
+
# 将文件名写入输出文件
|
| 23 |
+
f.write(file_path + '\n')
|
| 24 |
+
file_count += 1
|
| 25 |
+
# 每100000个文件名写入一个新文件
|
| 26 |
+
if file_count % 200000 == 0:
|
| 27 |
+
f.close()
|
| 28 |
+
output_file = f"{output_prefix}_{file_count}.txt"
|
| 29 |
+
f = open(output_file, 'w')
|
| 30 |
+
|
| 31 |
+
# 确保最后一个文件被正确关闭
|
| 32 |
+
f.close()
|
| 33 |
+
|
| 34 |
+
# 使用示例
|
| 35 |
+
directory = '/group/40033/public_datasets/sam-qa/sam_selection/' # 替换为你的文件夹路径
|
| 36 |
+
output_prefix = 'image_files_sam' # 输出文件名前缀
|
| 37 |
+
find_image_files(directory, output_prefix)
|
file_names/image_files_0.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
file_names/image_files_100000.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
file_names/image_files_120000.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
file_names/image_files_140000.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
file_names/image_files_160000.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
file_names/image_files_180000.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
file_names/image_files_20000.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
file_names/image_files_40000.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
file_names/image_files_60000.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
file_names/image_files_80000.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
file_names/sam_190k.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:143c151881af594223d595f1256166e6c9c833f7197efab3382de6a9b17ff84e
|
| 3 |
+
size 12371797
|
file_names/sam_190k_new.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cac45da450615e7859cf5de4763d08b4fbe5c1f9e4eb3701e8f0cd7737b338d
|
| 3 |
+
size 12371797
|