Spaces:
Sleeping
Sleeping
Update app.py
Browse files17 unmodified lines1819202122232417 unmodified lines# Post-process the outputs to get the bounding boxestarget_sizes = torch.tensor([image.size[::-1]])results = processor.post_process_object_detection(outputs, target_sizes=target_sizes, threshold=0.9)[0]detected_objects = []picking_positions = []17 unmodified lines1819202122232417 unmodified lines# Post-process the outputs to get the bounding boxestarget_sizes = torch.tensor([image.size[::-1]])results = processor.post_process_object_detection(outputs, target_sizes=target_sizes, threshold=0.8)[0]detected_objects = []picking_positions = []
app.py+1-1