Fix missing background_image argument
This commit is contained in:
@@ -34,6 +34,7 @@ img = render(256, # width
|
||||
2, # num_samples_x
|
||||
2, # num_samples_y
|
||||
0, # seed
|
||||
None, # background_image
|
||||
*scene_args)
|
||||
# The output image is in linear RGB space. Do Gamma correction before saving the image.
|
||||
pydiffvg.imwrite(img.cpu(), 'results/single_curve_outline/target.png', gamma=2.2)
|
||||
@@ -65,6 +66,7 @@ img = render(256, # width
|
||||
2, # num_samples_x
|
||||
2, # num_samples_y
|
||||
1, # seed
|
||||
None, # background_image
|
||||
*scene_args)
|
||||
pydiffvg.imwrite(img.cpu(), 'results/single_curve_outline/init.png', gamma=2.2)
|
||||
|
||||
@@ -86,6 +88,7 @@ for t in range(200):
|
||||
2, # num_samples_x
|
||||
2, # num_samples_y
|
||||
t+1, # seed
|
||||
None, # background_image
|
||||
*scene_args)
|
||||
# Save the intermediate render.
|
||||
pydiffvg.imwrite(img.cpu(), 'results/single_curve_outline/iter_{}.png'.format(t), gamma=2.2)
|
||||
@@ -121,6 +124,7 @@ img = render(256, # width
|
||||
2, # num_samples_x
|
||||
2, # num_samples_y
|
||||
202, # seed
|
||||
None, # background_image
|
||||
*scene_args)
|
||||
# Save the images and differences.
|
||||
pydiffvg.imwrite(img.cpu(), 'results/single_curve_outline/final.png')
|
||||
|
Reference in New Issue
Block a user