Wendy-Fly commited on
Commit
4e9c84a
·
verified ·
1 Parent(s): acb5a22

Upload data.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. data.py +2 -2
data.py CHANGED
@@ -33,7 +33,7 @@ def slove_images(bytes,path):
33
  #print(data[0][2].keys())
34
 
35
  file_path = '/home/zbz5349/WorkSpace/aigeeks/Qwen2.5-VL/magicbrush_dataset/data'
36
- image_path = '/home/zbz5349/WorkSpace/aigeeks/Qwen2.5-VL/magicbrush_dataset/images'
37
  os.makedirs(image_path,exist_ok=True)
38
 
39
  save_data = []
@@ -44,7 +44,7 @@ for sud_ in os.listdir(file_path):
44
  for x in data:
45
  img_path = os.path.join(image_path,x[5]['path'])
46
  ## 在 Linux 放开
47
- slove_images(x[5]['bytes'],img_path)
48
  message = {
49
  "role": "user",
50
  "content": [
 
33
  #print(data[0][2].keys())
34
 
35
  file_path = '/home/zbz5349/WorkSpace/aigeeks/Qwen2.5-VL/magicbrush_dataset/data'
36
+ image_path = '/home/zbz5349/WorkSpace/aigeeks/Qwen2.5-VL/magicbrush_dataset/data'
37
  os.makedirs(image_path,exist_ok=True)
38
 
39
  save_data = []
 
44
  for x in data:
45
  img_path = os.path.join(image_path,x[5]['path'])
46
  ## 在 Linux 放开
47
+ #slove_images(x[5]['bytes'],img_path)
48
  message = {
49
  "role": "user",
50
  "content": [