Loading model...");
-
- // Load the model using DJL
- boolean isFiji = SystemUsage.checkFiji();
- // If the plugin is running on an IJ1 distribution, set the IJ classloader
- // as the Thread ContextClassLoader
- if (!isFiji)
- Thread.currentThread().setContextClassLoader(IJ.getClassLoader());
- // TODO allow the use of translators and transforms
- URL url;
- // Block back button while loading
- parent.setEnabledBackNext(false);
- try {
- url = new File(new File(params.path2Model).getAbsolutePath()).toURI().toURL();
-
- if (params.selectedModelPath.equals("")) {
- pnLoad.append("No Pytorch model found in the directory.");
- parent.setEnabledBack(true);
- }
- String modelName = new File(params.selectedModelPath).getName();
- modelName = modelName.substring(0, modelName.indexOf(".pt"));
- long startTime = System.nanoTime();
- Criteria
Loading model...");
- ArrayList
Scaling factor: the factor by which the output image " - + "dimensions are rescaled. E.g. in superresolution, if the output size " - + "is twice the size of the input, the scaling factor should be [2,2]. See the equation." - + "Scaling factor can only be positive integers for axes XYZ. In the channels axis" - + "the scaling factor can also be 0
"); - info.append("li", "Offset factor: Difference between the input and output size. Note that " - + "this is different from a scaling factor. See the equation. For axes XYZ the " - + "offset does not affect the size of the final reconstructed image, it will be the" - + "as the orginal one, only applying the corresponding scaling. However, the offset" - + "of the C axis will does affect the size of the reconstructed image.
"); - info.append("li", "Halo facto: Size of the receptive field of one pixel in the " - + "network used to avoid artifacts along the borders of the image. If the " - + "convolutions inside the network do not use padding, set this value to 0." - + "Halo cannot be a negative integer.
"); - info.append("Final reconstructed image (X) = input image (X) * scaling factor (X)
"); - info.append("li", "Final reconstructed image (Y) = input image (Y) * scaling factor (Y)
"); - info.append("li", "Final reconstructed image (Z) = input image (Z) * scaling factor (Z)
"); - info.append("li", "Final reconstructed image (C) = input image (C) * scaling factor (C) + 2 * offset factor (X)
"); - info.append("