Spaces:
Running on Zero
Running on Zero
Commit History
-
Fix: Ensure Object is Correctly Placed in Scene without Texturing when the texture is not provided
Verified signatureIn the previous implementation of the run_texture_scene method, if a texture image was not provided, the scene was being incorrectly set to the object image. This resulted in the object not being placed correctly in the provided scene. To address this, I added a dedicated condition check to handle scenarios where only the object and scene images are provided, ensuring the object is correctly integrated into the scene. Modified Code Here is the modified run_texture_scene method with added comments for clarity: def run_texture_scene(self, image_object_path, image_texture_path, image_scene_path): # Process the input images image_object = self.process_image(image_object_path) image_texture = self.process_image(image_texture_path) image_scene = self.process_image(image_scene_path) if image_object is None: raise gr.Error('Object image is required') current_emb = None # If both object and scene images are provided, run scene processing if image_sc…5a0d971
-
Update pops.py Running
d05f06b
-
Added spaces
83b8300 -
Added space
71d3bec -
initial commit
Verified signature5fdb8b2