{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":628751977,"defaultBranch":"stable","name":"FastSurfer","ownerLogin":"neurosignal","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-04-16T22:30:11.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/10560182?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1681684762.5366368","currentOid":""},"activityList":{"items":[{"before":"d0fdf8346c840283bdbb4cc2f97c228204fa605a","after":"284fa8407dada565b4a4608663f46c0d5b01a385","ref":"refs/heads/patch-1","pushedAt":"2023-04-16T22:39:17.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"neurosignal","name":"Amit Jaiswal","path":"/neurosignal","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10560182?s=80&v=4"},"commit":{"message":"Update data_utils.py due to numpy deprecation in NumPy 1.20\n\nChanged because it used to break indicating Numpy attribute error as: \r\nAttributeError: module 'numpy' has no attribute 'float'.\r\n\r\n#See the error here:\r\n[INFO: inference.py: 217]: Axial inference on /net/pnap/data/rd/testpatient_xxx/sub-xxxx_T1w.nii.gz finished in 97.8456 seconds\r\nTraceback (most recent call last):\r\n File \"/home/amit3/0Software/FastSurfer-2.0.0/FastSurferCNN/run_prediction.py\", line 376, in \r\n pred_data = eval.get_prediction(orig_fn, data_array, orig_img.header.get_zooms())\r\n File \"/home/amit3/0Software/FastSurfer-2.0.0/FastSurferCNN/run_prediction.py\", line 221, in get_prediction\r\n pred_classes = du.split_cortex_labels(pred_classes.cpu().numpy())\r\n File \"/home/amit3/0Software/FastSurfer-2.0.0/FastSurferCNN/data_loader/data_utils.py\", line 441, in split_cortex_labels\r\n aseg_lh = filters.gaussian_filter(1000 * np.asarray(aparc == 2, dtype=np.float), sigma=3)\r\n File \"/home/amit3/0Software/anaconda3/envs/M2Sv4/lib/python3.9/site-packages/numpy/__init__.py\", line 305, in __getattr__\r\n raise AttributeError(__former_attrs__[attr])\r\nAttributeError: module 'numpy' has no attribute 'float'.\r\n`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.\r\nThe aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:\r\n https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations","shortMessageHtmlLink":"Update data_utils.py due to numpy deprecation in NumPy 1.20"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADGeJ49AA","startCursor":null,"endCursor":null}},"title":"Activity ยท neurosignal/FastSurfer"}