You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bragg Peaks detection using a pre-trained Faster RCNN deep neural network
2
2
================
3
3
4
-
Inorder to use the pre-trained Faster RCNN model inside mantid using an IDAaaS instance, below steps are required.
4
+
Inorder to run the pre-trained Faster RCNN model via mantid inside an IDAaaS instance, below steps are required.
5
5
6
-
* Launch an IDAaaS instance with GPUs from WISH > Wish Single Crystal GPU Advanced
7
-
*Launch Mantid workbench nightly from Applications->Software->Mantid->Mantid Workbench Nightly
6
+
* Launch an IDAaaS instance with GPUs selected from WISH > Wish Single Crystal GPU Advanced
7
+
*From IDAaaS, launch Mantid workbench nightly from Applications->Software->Mantid->Mantid Workbench Nightly
8
8
* Download `scriptrepository\diffraction\WISH` directory from mantid's script repository as instructed here https://docs.mantidproject.org/nightly/workbench/scriptrepository.html
9
9
* Check whether `<local path>\diffraction\WISH` path is listed under `Python Script Directories` tab from `File->Manage User Directories` of Mantid workbench.
10
-
* Below is an example code snippet to test the code. It will create a peaks workspace with the inferred peaks from the cnn and will do a peak filtering using the q_tol provided using `BaseSX.remove_duplicate_peaks_by_qlab`.
10
+
* Below is an example code snippet to use the pretrained model for Bragg peak detection. It will create a peaks workspace with the inferred peaks from the model. The valid values for the `clustering` argument are `QLab` or `HDBSCAN`. For `QLab` method the default value of `q_tol=0.05` will be used for `BaseSX.remove_duplicate_peaks_by_qlab` method.
* If the above import is not working, check whether the `<local path>\diffraction\WISH` path is listed under `Python Script Directories` tab from `File->Manage User Directories`.
18
+
* Depending on the selected `clustering` method in the above, the user can provide custom parameters using `kwargs` as shown below.
* The documentation for using HDBSCAN can be found here: https://scikit-learn.org/1.5/modules/generated/sklearn.cluster.HDBSCAN.html
29
+
* The documentation for using `BaseSX.remove_duplicate_peaks_by_qlab` can be found here: https://docs.mantidproject.org/nightly/techniques/ISIS_SingleCrystalDiffraction_Workflow.html
0 commit comments