-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
62 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{"task_id": "./human-eval-bia/human_eval_bia_0.ipynb", "completion": "\n labeled_image, num_labels = skimage.measure.label(binary_image, background=0, return_num=True)\n return num_labels\n", "result": "failed: module 'signal' has no attribute 'setitimer'", "passed": false} | ||
{"task_id": "./human-eval-bia/human_eval_bia_1.ipynb", "completion": "\nfrom skimage import filters\nimport numpy as np\n\ndef apply_otsu_threshold_and_count_postiive_pixels(image):\n threshold_value = filters.threshold_otsu(image)\n binary_image = image > threshold_value\n positive_pixels_count = np.sum(binary_image)\n return binary_image, positive_pixels_count\n", "result": "failed: module 'signal' has no attribute 'setitimer'", "passed": false} | ||
{"task_id": "./human-eval-bia/human_eval_bia_0.ipynb", "completion": "\n # Convert the image to uint8\n binary_image = binary_image.astype(np.uint8)\n\n # Perform connected component labeling\n labeled_image, num_labels = skimage.measure.label(binary_image, return_num=True)\n\n # Return the count of labeled objects\n return num_labels\n", "result": "failed: module 'signal' has no attribute 'setitimer'", "passed": false} | ||
{"task_id": "./human-eval-bia/human_eval_bia_1.ipynb", "completion": "\nimport skimage.filters\n\ndef apply_otsu_threshold_and_count_postiive_pixels(image):\n \"\"\"\n Takes an image, applies Otus's threshold method to it to create a binary image and \n counts the positive pixels.\n \"\"\"\n # Apply Otsu's thresholding to create a binary image\n threshold = skimage.filters.threshold_otsu(image)\n binary_image = image > threshold\n \n # Count positive pixels\n positive_pixels_count = np.sum(binary_image)\n\n return positive_pixels_count\n", "result": "failed: module 'signal' has no attribute 'setitimer'", "passed": false} |