llinguini commited on
Commit
3024161
·
verified ·
1 Parent(s): 057a9f0

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .debug/fix_converting.py +41 -0
  2. .debug/test.py +74 -0
  3. README.md +17 -0
  4. data/chunk-000/episode_000000.parquet +3 -0
  5. data/chunk-000/episode_000001.parquet +3 -0
  6. data/chunk-000/episode_000002.parquet +3 -0
  7. data/chunk-000/episode_000003.parquet +3 -0
  8. data/chunk-000/episode_000004.parquet +3 -0
  9. data/chunk-000/episode_000005.parquet +3 -0
  10. data/chunk-000/episode_000006.parquet +3 -0
  11. data/chunk-000/episode_000007.parquet +3 -0
  12. data/chunk-000/episode_000008.parquet +3 -0
  13. data/chunk-000/episode_000009.parquet +3 -0
  14. data/chunk-000/episode_000010.parquet +3 -0
  15. data/chunk-000/episode_000011.parquet +3 -0
  16. data/chunk-000/episode_000012.parquet +3 -0
  17. data/chunk-000/episode_000013.parquet +3 -0
  18. data/chunk-000/episode_000014.parquet +3 -0
  19. data/chunk-000/episode_000015.parquet +3 -0
  20. data/chunk-000/episode_000016.parquet +3 -0
  21. data/chunk-000/episode_000017.parquet +3 -0
  22. data/chunk-000/episode_000018.parquet +3 -0
  23. data/chunk-000/episode_000019.parquet +3 -0
  24. data/chunk-000/episode_000020.parquet +3 -0
  25. data/chunk-000/episode_000021.parquet +3 -0
  26. data/chunk-000/episode_000022.parquet +3 -0
  27. data/chunk-000/episode_000023.parquet +3 -0
  28. data/chunk-000/episode_000024.parquet +3 -0
  29. data/chunk-000/episode_000025.parquet +3 -0
  30. data/chunk-000/episode_000026.parquet +3 -0
  31. data/chunk-000/episode_000027.parquet +3 -0
  32. data/chunk-000/episode_000028.parquet +3 -0
  33. data/chunk-000/episode_000029.parquet +3 -0
  34. data/chunk-000/episode_000030.parquet +3 -0
  35. data/chunk-000/episode_000031.parquet +3 -0
  36. data/chunk-000/episode_000032.parquet +3 -0
  37. data/chunk-000/episode_000033.parquet +3 -0
  38. data/chunk-000/episode_000034.parquet +3 -0
  39. data/chunk-000/episode_000035.parquet +3 -0
  40. data/chunk-000/episode_000036.parquet +3 -0
  41. data/chunk-000/episode_000037.parquet +3 -0
  42. data/chunk-000/episode_000038.parquet +3 -0
  43. data/chunk-000/episode_000039.parquet +3 -0
  44. data/chunk-000/episode_000040.parquet +3 -0
  45. data/chunk-000/episode_000041.parquet +3 -0
  46. data/chunk-000/episode_000042.parquet +3 -0
  47. data/chunk-000/episode_000043.parquet +3 -0
  48. data/chunk-000/episode_000044.parquet +3 -0
  49. data/chunk-000/episode_000045.parquet +3 -0
  50. data/chunk-000/episode_000046.parquet +3 -0
.debug/fix_converting.py ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import numpy as np
3
+ import copy
4
+
5
+ # Load stats file
6
+ stats_file = "../meta/stats.json"
7
+ with open(stats_file, 'r') as f:
8
+ stats = json.load(f)
9
+
10
+ print("Fixing stats.json file...")
11
+
12
+ # Create a deep copy to modify
13
+ fixed_stats = copy.deepcopy(stats)
14
+
15
+ # Fix all None std values
16
+ for key in fixed_stats:
17
+ if "std" in fixed_stats[key] and fixed_stats[key]["std"] is None:
18
+ # Use matching shape from mean if possible
19
+ if "mean" in fixed_stats[key]:
20
+ mean = fixed_stats[key]["mean"]
21
+ if isinstance(mean, list):
22
+ # Create a ones array with same shape as mean
23
+ fixed_stats[key]["std"] = [1.0] * len(mean)
24
+ else:
25
+ # Fallback to scalar
26
+ fixed_stats[key]["std"] = [1.0]
27
+ else:
28
+ # No mean to reference, use default
29
+ fixed_stats[key]["std"] = [1.0]
30
+
31
+ print(f"Fixed {key}.std: None → {fixed_stats[key]['std']}")
32
+
33
+ # Save the fixed stats file
34
+ output_file = "../meta/stats_fixed.json"
35
+ with open(output_file, 'w') as f:
36
+ json.dump(fixed_stats, f, indent=2)
37
+
38
+ print(f"\nFIXED! New stats file saved to: {output_file}")
39
+ print("\nTo use this fixed file:")
40
+ print("1. Rename the original file as a backup: mv ../meta/stats.json ../meta/stats.json.bak")
41
+ print("2. Replace with fixed version: mv ../meta/stats_fixed.json ../meta/stats.json")
.debug/test.py ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import json
3
+ import torch
4
+
5
+ # Load stats file
6
+ stats_file = "../meta/stats.json"
7
+ with open(stats_file, 'r') as f:
8
+ stats = json.load(f)
9
+
10
+ print("Keys in stats file:", list(stats.keys()))
11
+
12
+ # Check each field more thoroughly by simulating the torch conversion
13
+ problem_found = False
14
+ for key in stats:
15
+ print(f"\nExamining key: {key}")
16
+ for stat_type in ["mean", "std"]:
17
+ if stat_type in stats[key]:
18
+ value = stats[key][stat_type]
19
+ print(f" - {stat_type} type: {type(value)}")
20
+
21
+ try:
22
+ # Try converting to numpy array (this is what the code does)
23
+ numpy_val = np.array(value)
24
+ print(f" NumPy array shape: {numpy_val.shape}, dtype: {numpy_val.dtype}")
25
+
26
+ # Test if this can be converted to torch tensor
27
+ try:
28
+ torch_val = torch.from_numpy(numpy_val).to(dtype=torch.float32)
29
+ print(f" ✓ Successfully converted to torch tensor")
30
+ except Exception as e:
31
+ print(f" ✗ ERROR converting to torch tensor: {type(e).__name__}: {e}")
32
+ print(f" Value: {numpy_val}")
33
+ problem_found = True
34
+ except Exception as e:
35
+ print(f" ✗ ERROR converting to NumPy array: {type(e).__name__}: {e}")
36
+ print(f" Value: {value}")
37
+ problem_found = True
38
+
39
+ if not problem_found:
40
+ print("\nNo problems found in the stats file. The error might be happening in another part of the code.")
41
+ print("Try fixing the stats file with a preprocessing step:")
42
+
43
+ # Create a fixed stats file
44
+ fixed_stats = {}
45
+ for key in stats:
46
+ fixed_stats[key] = {}
47
+ for field, value in stats[key].items():
48
+ if field in ["mean", "std"]:
49
+ # Try to safely convert to float array
50
+ try:
51
+ # First convert to numpy array
52
+ arr = np.array(value)
53
+ # If object type, replace with safe values
54
+ if arr.dtype == np.dtype('O'):
55
+ arr = np.ones_like(arr, dtype=np.float32)
56
+ else:
57
+ # Make sure it's float32
58
+ arr = arr.astype(np.float32)
59
+ # Convert back to list for JSON
60
+ fixed_stats[key][field] = arr.tolist()
61
+ except Exception as e:
62
+ print(f"Fixing {key}.{field}: {e}")
63
+ # Just use a safe default
64
+ fixed_stats[key][field] = [1.0]
65
+ else:
66
+ # Keep other fields unchanged
67
+ fixed_stats[key][field] = value
68
+
69
+ # Save the fixed stats
70
+ with open("../meta/stats_fixed.json", 'w') as f:
71
+ json.dump(fixed_stats, f, indent=2)
72
+
73
+ print("Created fixed stats file: ../meta/stats_fixed.json")
74
+ print("You can replace the original stats.json with this file.")
README.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - phosphobot
5
+ - so100
6
+ - phospho-dk1
7
+ task_categories:
8
+ - robotics
9
+ ---
10
+
11
+ # enhanced_pick_up_socks_dataset
12
+
13
+ **This dataset was generated using the [phospho cli](https://github.com/phospho-app/phosphobot)**
14
+
15
+ More information on [robots.phospho.ai](https://robots.phospho.ai).
16
+
17
+ This dataset contains a series of episodes recorded with a robot and multiple cameras. It can be directly used to train a policy using imitation learning. It's compatible with LeRobot and RLDS.
data/chunk-000/episode_000000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000009.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fcec3196c6ddc873575de53c5e218a95a088b57c4785aa76a8b4611af0f1736
3
+ size 18030
data/chunk-000/episode_000011.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000016.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000017.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000018.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000019.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000020.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000021.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a410a12d792d8c18414b611dcf48765b46eb619a04289dc7ee0f441937b13c92
3
+ size 13706
data/chunk-000/episode_000022.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000023.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000024.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000025.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000026.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000027.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000028.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000029.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000031.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000032.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80fe438a4b3a7c147ba21868d6819e49f6bd5867671f86ec13e301208a2e171
3
+ size 12988
data/chunk-000/episode_000033.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000034.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000035.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000036.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000037.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000038.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000039.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000040.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000041.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000042.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000043.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e556f572a6c599b3a83a889cb999fc29c3e8e9fdac7606298082442312ae2350
3
+ size 13987
data/chunk-000/episode_000044.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c99cde9a7c0e78e1322c00502147271266327bcfbd4bbeee71c3c274f96f376c
3
+ size 14615
data/chunk-000/episode_000045.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c99cde9a7c0e78e1322c00502147271266327bcfbd4bbeee71c3c274f96f376c
3
+ size 14615
data/chunk-000/episode_000046.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c99cde9a7c0e78e1322c00502147271266327bcfbd4bbeee71c3c274f96f376c
3
+ size 14615