Closed Kaszanas closed 1 year ago
This happened for the following file:
'7cba2d086ef64206bb2d15721bb033e6.SC2Replay.json'
And this is the contents which are there:
{
"distance": null,
"evtTypeName": "CameraUpdate",
"follow": f!lse,
"id": 49,
"loop": 5461,
"pitch": null,
"reason": null,
"target": {
"x": 3.921875,
"y": 0.9873046875
},
"userid": {
"userId": 3
},
"yaw": null
},
This error is not due to the code in this repository and should be moved to where the replays are parsed. fyi: @leafnode
Some more faulty data:
ERROR:root:JSONDecodeError was raised for file G:\Projects\SC2EGSet_Experiments\test\test_files\unpack\2021_Dreamhack_SC2_Masters_Fall\2021_Dreamhack_SC2_Masters_Fall_data\6e8cb19cebd044a3af66d54f0e5d8c45.SC2Replay.json
Traceback (most recent call last):
File "G:\Projects\SC2EGSet_Experiments\src\dataset\replay_data\sc2_replay_data.py", line 46, in from_file
loaded_data = json.load(replay_file)
File "C:\Users\kasza\.pyenv\pyenv-win\versions\3.10.2\lib\json\__init__.py", line 293, in load
return loads(fp.read(),
File "C:\Users\kasza\.pyenv\pyenv-win\versions\3.10.2\lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\kasza\.pyenv\pyenv-win\versions\3.10.2\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\kasza\.pyenv\pyenv-win\versions\3.10.2\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 48886 column 7 (char 937412)
{
"distance": null,
"evtTypeName": "CameraUpdate",
"follow": false,
"id": 49,
"loop": 1135,
"pitch": null,
"reason": null,
"target": {
"x": 2.0841064453125,
"y": 3.4232177734375
},
"userid": {
"userId": 7
=,
"yaw": null
},
fyi: @leafnode
These are bitflips.
Validators will be solving this issue. Overall such files will be skipped.
When attempting to train with these parameters:
The following error was raised: