Skip to content

Commit

Permalink
Fix wall deterministic issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryLingjieMei authored and pvl-bot committed Oct 18, 2024
1 parent c641311 commit d971819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infinigen/core/constraints/example_solver/room/decorate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from infinigen.core.surface import write_attr_data
from infinigen.core.util import blender as butil
from infinigen.core.util.blender import deep_clone_obj
from infinigen.core.util.math import int_hash
from infinigen.core.util.math import FixedSeed, int_hash
from infinigen.core.util.random import log_uniform
from infinigen.core.util.random import random_general as rg

Expand Down Expand Up @@ -93,7 +93,7 @@ def split_rooms(rooms_meshed: list[bpy.types.Object]):


def import_material(factory_name):
with gin.unlock_config():
with gin.unlock_config(), FixedSeed(0):
try:
return importlib.import_module(f"infinigen.assets.materials.{factory_name}")
except ImportError:
Expand Down

0 comments on commit d971819

Please sign in to comment.