Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constraint failed when increase indoor desk & chair number #389

Open
YandanYang opened this issue Dec 12, 2024 · 0 comments
Open

constraint failed when increase indoor desk & chair number #389

YandanYang opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@YandanYang
Copy link

Describe the bug

When I want to add more desks with chairs in a room, only a few desk has chair or no desk has chair.
It seems the constraint failed. I think the rule must have some bugs.

Image 1

And I found that, when I increase the number , the chairs are more likely to show up near only one desk but not each desk evenly. Once the first desk can not handle more chairs, the second desk will take the rest chairs.

Image 1 Image 2

By the way, in

deskchair = furniture[seating.OfficeChairFactory].related_to(
        desks, cu.front_to_front
    )

cu.front_to_front works worse than cu.front_against.

Steps to Reproduce

change

constraints["bedroom"] = bedrooms.all(
        lambda r: (
            beds.related_to(r).count().in_range(1, 2)
            * sidetables.related_to(beds.related_to(r)).count().in_range(0, 2)
            * rugs.related_to(r).count().in_range(0, 1)
            * desks.related_to(r).count().in_range(0, 1)
            * storage_freestanding.related_to(r).count().in_range(2, 5)
            * floor_lamps.related_to(r).count().in_range(0, 1)
            * storage.related_to(r).all(
                lambda s: (
                    obj[Semantics.OfficeShelfItem].related_to(s, cu.on).count() >= 0
                )
            )
        )
    )

to

constraints["bedroom"] = bedrooms.all(
        lambda r: (
            beds.related_to(r).count().in_range(1, 2)
            * desks.related_to(r).count().in_range(3,3)
            * deskchair.related_to(r).count().in_range(3,3)
        )
    )

What version of the code were you using?

Tell us the commit & commit hash from git log
e254428

What command did you run?

python infinigen_examples/generate_indoors.py --seed 0 --task coarse --output_folder outputs/indoors/debug -g fast_solve.gin overhead.gin singleroom.gin -p compose_indoors.terrain_enabled=False compose_indoors.overhead_cam_enabled=True restrict_solving.solve_max_rooms=1 compose_indoors.invisible_room_ceilings_enabled=True compose_indoors.restrict_single_supported_roomtype=True

What are your FULL output logs?

Provide the FULL output logs from your command as a txt file.
log.txt

If this is your first time running Infinigen, what are the full install logs?**

Not the first time. No running bugs.

Platform

  • OS & OS Version: Ubuntu 22.04
  • GPU (?) : NVIDIA Corporation Device 2684 (rev a1)
  • GPU Driver Version (?) : 545.29.06
  • RAM (GB):

Additional context

Can you explain why ? And more information about how does the rule work? Thanks.

@YandanYang YandanYang added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant