Skip to content

Re-run Rendering When Code Crashes #4

Description

@trandangtrungduc

Thank you very much for the useful dataset.

I would like to provide a simple piece of code (.sh file) to re-run the main.py file when a code crash occurs by Open3D during rendering, as below:

while true; do
    echo "Starting main.py..."
    python main.py
    EXIT_CODE=$?
    if [ $EXIT_CODE -ne 0 ]; then
        echo "Program crashed with exit code $EXIT_CODE. Restarting..."
    else
        echo "Program exited successfully. Exiting loop."
        break
    fi
    sleep 1
done

I also created a selected_bodies_v4.json file that scans all scene0000_00_k of a scene that selected_bodies_v3.json might have missed.
selected_bodies_v4.json

I hope this is helpful for someone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions