Comments (6)
i closed a duplicate version of this one with wrong fomart
from l5kit.
mmm..I've never experienced this issue under linux for the test.zarr (which has around the same size of validate.zarr).
i create another chunk data set without linking to any storage on harddrive and dont get this problem, thus i strongly believe it is zarr's issue of append method
Do you mean you're holding everything in RAM?
from l5kit.
i use a local object that is similar to chunk dataset but no link to any storage in zarr_scenes_chop (zarr_utils). After the loop of append (copy). the output_dataset (linked to a storage) append the elements of the local object accordingly (append is called only one for the output_dataset)
btw, should i better use validate.zarr or test.zarr to evaluate the model?
from l5kit.
btw, should i better use validate.zarr or test.zarr to evaluate the model?
test.zarr is used in the competition, but you don't have GT for that one stored in the zarr. So If you want to chop something and also have the GT validate.zarr
is better
from l5kit.
i use a local object that is similar to chunk dataset but no link to any storage in zarr_scenes_chop (zarr_utils). After the loop of append (copy). the output_dataset (linked to a storage) append the elements of the local object accordingly (append is called only one for the output_dataset)
Can you maybe link here your code?
from l5kit.
i use a local object that is similar to chunk dataset but no link to any storage in zarr_scenes_chop (zarr_utils). After the loop of append (copy). the output_dataset (linked to a storage) append the elements of the local object accordingly (append is called only one for the output_dataset)
Can you maybe link here your code?
in zarr_utils.py
for idx in tqdm(range(len(input_dataset.scenes)), desc="copying"):
# get data and immediately chop frames, agents and traffic lights
scene = input_dataset.scenes[idx]
first_frame_idx = scene["frame_index_interval"][0]
frames = input_dataset.frames[first_frame_idx : first_frame_idx + num_frames_to_copy]
agents = input_dataset.agents[get_agents_slice_from_frames(*frames[[0, -1]])]
tl_faces = input_dataset.tl_faces[get_tl_faces_slice_from_frames(*frames[[0, -1]])]
# reset interval relative to our output (subtract current history and add output history)
scene["frame_index_interval"][0] = cur_frame_idx
scene["frame_index_interval"][1] = cur_frame_idx + num_frames_to_copy # address for less frames
frames["agent_index_interval"] += cur_agent_idx - frames[0]["agent_index_interval"][0]
frames["traffic_light_faces_index_interval"] += (
cur_tl_face_idx - frames[0]["traffic_light_faces_index_interval"][0]
)
temp_dataset.scenes.append(scene[None, ...])
temp_dataset.frames.append(frames)
temp_dataset.agents.append(agents)
temp_dataset.tl_faces.append(tl_faces)
cur_scene_idx += len(scene)
cur_frame_idx += len(frames)
cur_agent_idx += len(agents)
cur_tl_face_idx += len(tl_faces)
output_dataset.scenes.append(temp_dataset.scenes)
output_dataset.frames.append(temp_dataset.frames)
output_dataset.agents.append(temp_dataset.agents)
output_dataset.tl_faces.append(temp_dataset.tl_faces)
output_dataset is the one linked to the storage on harddrive and temp_dataset's constructor is almost similar to chunk dataset, only a tiny difference here in zarr_dataset.py in
def initialize(
self, mode: str = "w", num_scenes: int = 0, num_frames: int = 0, num_agents: int = 0, num_tl_faces: int = 0
) -> "ChunkedDataset":
instead of
self.root = zarr.open_group(self.path, mode=mode)it is
self.root = zarr.open_group( 'w') # not linked to any storage`
from l5kit.
Related Issues (20)
- How to visualize ego prediction of agents track?
- How to use trained model with live data and own map?
- Highway scenes
- In windows anaconda An error occurs when the sim_outs = sim_loop.unroll(scenes_to_unroll) statement is executed in SimNet ReferenceError: weakly-referenced object no longer exists HOT 2
- Consulting the meanings of several data fields.
- ReferenceError: weakly-referenced object no longer exists HOT 2
- Question on Traffic light face
- Error in the examples/visualisation/visualise_data.ipynb HOT 1
- SafetyNet source code HOT 1
- cannot find .zarr files HOT 2
- FileNotFoundError: [Errno 2] No such file or directory: './agent_motion_config.yaml' HOT 1
- l5kit on mac m1 chip HOT 1
- ReferenceError: weakly-referenced object no longer exists HOT 1
- prediction model
- Example perception solution
- How can I transform the vehicle centroid coord to google map coord? prediction dataset HOT 1
- AgentDataset(cfg, zarr_dataset, rast) Low number of returns
- About the raw data of this dataset HOT 1
- Conner of the download of dataset HOT 1
- THIS PROJECT WAS DISCONTINUED AND IT IS NOT ACTIVELY MAINTAINED
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from l5kit.