ValueError: '000000' is not in list
- Dominant language
- Python
- Stars
- 3.7k
- Forks
- 518
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the issue
@cornerfarmer
The BopWriter fails during calc_mask_info_coco. I am using `blenderproc==2.7.0` under Windows with `python==3.8.10`.
I am getting the following error when I run the `camera_object_pose` example:
```
blenderproc run examples/basics/camera_object_pose/main.py examples/basics/camera_object_pose/obj_000004.ply examples/basics/camera_object_pose/output
```
Error:
```
c:\data\git\demonstrator-data-generation\.env\lib\site-packages\blenderproc\python\writer\BopWriterUtility.py:130: UserWarning: WARNING: `m2mm` is deprecated, please use `annotation_scale='mm'` instead!
warnings.warn("WARNING: `m2mm` is deprecated, please use `annotation_scale='mm'` instead!")
Error: Python: Traceback (most recent call last):
File "", line 1, in
File "C:\Data\Git\demonstrator-data-generation\../BlenderProc/examples/basics/camera_object_pose/main.py", line 61, in
bproc.writer.write_bop(args.output_dir, [obj], data["depth"], data["colors"], m2mm=True, append_to_existing_output=True)
File "c:\data\git\demonstrator-data-generation\.env\lib\site-packages\blenderproc\python\writer\BopWriterUtility.py", line 149, in write_bop
chunk_dirs = chunk_dirs[chunk_dir_ids.index(f"{starting_chunk_id:06d}"):]
ValueError: '000000' is not in list
Error: script failed, file: '../BlenderProc/examples/basics/camera_object_pose/main.py', exiting.
Cleaning temporary directory
```
### Minimal code example
_No response_
### Files required to run the code
_No response_
### Expected behavior
The example is not updated with blenderproc version 2.7.0. However, the example should run without throwing error.
### BlenderProc version
v2.7.0
Contributor guide
Research direction
Start with examples/basics/camera_object_pose/main.py and the BopWriterUtility.py traceback at line 149. Run the reported camera_object_pose command under BlenderProc 2.7.0 and inspect why the example reaches the missing `000000` chunk ID. Done means the example runs without the ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- blender, python
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100