Skip to content
Discussion options

You must be logged in to vote

Based on the input from @njroussel, I created the following MWE. To run it, the Mitsuba test scenes are required.

"""Minimal working example to test an optimization, with a reloaded scene for every
iteration."""

import pathlib

import drjit as dr
import mitsuba as mi
import numpy as np
from tqdm import tqdm

mi.set_variant("cuda_ad_mono")    # llvm_ad_rgb works

BASE_SCENE_DICT = {
    "type": "scene",
    "material": {
        "type": "principled",
        "base_color": 1.0
    },
    "fill_light": {
        "type": "constant",
        "radiance": 0.5,
    },
    "integrator": {
        "type": "path"
    },
    "sensor": {
        "type":
            "orthographic",
        "to_world":…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@maxfrei750
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by maxfrei750
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants