Skip to content
Discussion options

You must be logged in to vote

Hi @njroussel,

I did that as well and have been playing with it for some time, and eventually got something working this morning. Do you think the "right way" to do this is using Dr.Jit?

import multiprocessing as mp


def mitsuba_worker(render_request, render_response, grad_queue, gt_queue):
    import os

    os.environ["CUDA_VISIBLE_DEVICES"] = "0"

    import mitsuba as mi
    import drjit as dr

    mi.set_variant("cuda_ad_rgb")

    # Build scene
    sd = mi.cornell_box()
    sd["integrator"] = {"type": "prb"}
    scene = mi.load_dict(sd)
    params = mi.traverse(scene)
    gt = mi.render(scene)
    gt_queue.put(gt.numpy())

    optim = mi.ad.Adam(0.1)
    col = mi.Color3f(0.205421, 0…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pixelsandpointers
Comment options

Answer selected by pixelsandpointers
@njroussel
Comment options

@pixelsandpointers
Comment options

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