This guide provides solutions to common issues encountered when using DL4MicEverywhere.
- Ensure your OS meets the requirements for Docker Desktop. Docker requires Windows 10 Pro/Enterprise x64 or macOS 10.13+ .
- On Linux, ensure Docker engine is installed and the service is running. Check status with:
systemctl status docker
- Confirm your user is in the
docker
group to avoid permission errors.
- Verify internet connection and proxy settings. Docker needs access to Docker Hub.
- If authentication errors occur, re-enter Docker Hub credentials in Docker Desktop settings or
~/.docker/config.json
. - For GitHub Package Registry images, ensure you are logged in with:
docker login docker.pkg.github.com
- Ensure Docker CLI client is installed and in your PATH.
- On Linux, you may need to add user to
docker
group. Log out and back in for changes to take effect.
- Increase Docker resources in Preferences > Resources. At least 2 CPUs and 4GB memory recommended.
- On Linux, check other processes consuming resources. Docker may need more RAM/CPUs.
- Ensure you are not using any Docker container in the terminal. Then, open a terminal and force quit Docker by typing:
pkill -SIGHUP -f /Applications/Docker.app 'docker serve'
- Your docker client might be out of space. Read here how to clear space.
This issue happens on Windows computers because the virtualization is not enabled in you BIOS and usually comes with the following message and forcing Docker to stop or close.
This process requires you to restart your computer, enter the BIOS and enabling this option. For more detailed instructions, we recommend following the step described on the following videos Enable Virtualization on Windows 10 or Enable Virtualization on Windows 11.
- Verify Nvidia drivers are properly installed for your GPU.
- Ensure
nvidia-docker
is installed and runtime is enabled in Docker. - Consider updating Nvidia driver and CUDA to latest compatible versions.
- Check
nvidia-smi
works outside Docker. If not, reinstall Nvidia driver. - Ensure no other processes (e.g. X server) are using GPU when starting Docker.
- Lower batch size or model complexity to reduce VRAM usage.
- Consider using a GPU with more VRAM.
- Enable paging to swap some GPU memory to system RAM.
- Check Docker build logs for errors. Debug or raise issue.
- Consider updating Docker engine and Nvidia driver to latest versions.
- Run the Windows_launcher.bat again.
- Click
Load previous settings
and thenRun
.
- Ensure that all the paths are given with "quotation marks" and remove spaces in the file names.
- Verify that the paths to the files are correct.
- Review the permissions to the folders you specified. If they are protected, DL4MicEverywhere will not be able to mount them. The first time launching DL4MicEverywhere, Docker will ask for permission to access the folder. Please, click on Yes.
- Security and privacy permissions to the folders in iOS (Mac) can be set up in Files and Folders as shown in the images: System Settings > Privacy & Security > Files and Folders > Docker > Activate the needed folders. (Note that all the content in DL4MicEverywhere is open-source, so you can check all the steps taken in the docker image build and also in the notebooks).
- Some .tiff files can be compressed and need
imagecodecs
python package to be installed. This package cannot be installed at the moment in iOS (Mac) systems. To fix this, the images need to be restored without compression. For this, you can either open and restore them without compression usingtifffile
in Python or you can use Fiji/ImageJ. Here is a quick ImageJ macro code to do it automatically://------------------------------------------------------------------------- // PATH: the path containing a folder with the images you want to open and save again as tif files. // input_folder: the name of the folder containing the images. If it has a different name, please change it. // new_folder_seg: the name of the new folder created to save the images again. //------------------------------------------------------------------------- PATH = "/Users/esti/Documents/DL4MicEverywhere/data/"; input_folder = "images/"; new_folder_seg = "uncompressed_images/"; files = getFileList(PATH + input_folder); print(files.length+" images in the directory " + PATH); if (!File.exists(PATH + new_folder_seg)){ File.makeDirectory(PATH + new_folder_seg); if (!File.exists(PATH + new_folder_seg)){ exit("Unable to create a directory for masks. Check User permissions."); } } // Process each image with the trained model and save the results. for (i=0; i<files.length; i++) { // avoid any subfolder if (endsWith(files[i], ".tif")){ // store the name of the image to save the results image_name = File.getNameWithoutExtension(PATH + input_folder + files[i]); // open the image open(PATH + input_folder + files[i]); // save selectWindow("Result of " + files[i]); saveAs("Tiff", PATH + new_folder_seg+image_name+".tif"); run("Close All"); } }
Option 1: Increase CPU limit
, Memory limit
and Swap
on Docker Desktop settings.
If you are on Windows you will need to follow this different steps.
Option 2: Lower model and data complexity. Simplify notebooks.
Option 3: Consider using a machine with more powerful CPU/GPU resources.
- Check notebook logs for errors and debug.
- Raise issue with logs and steps to reproduce problem.
- Ensure training data is sufficient and correctly formatted.
- Try tuning model hyperparameters and architecture.
- Consider using a more suitable model or training scheme.
MacOS computers will notify you that the file you want to launch cannot verified if it is free from malware and it will pop you the following message:
In that case, instead of double-clicking the file you will need to tight click it and chose the Open
option as in the following image:
This time you will get a different message, and by clicking Open
you are allowing your to run by double click the launcher for future occasions.
Please ensure you have downloaded DL4MicEverywhere as a ZIP file from the DL4MicEverywhere repository. The Git clone will not work, as Windows auto-converts the files.
Windows computers will warn you that the file you want to launch is an unrecognized app and will pop you the following message:
To allow the double click launching you just need to choose the ´More info´ option and after that click on ´Run anyway´ as in it can be seen below, allowing with this to run this file in future occasions.
This issue happens on Windows computers because the virtualization is not enabled in you BIOS and usually comes with the following message and forcing Docker to stop or close.
This process requires you to restart your computer, enter the BIOS and enabling this option. For more detailed instructions, we recommend following the step described on the following videos Enable Virtualization on Windows 10 or Enable Virtualization on Windows 11.
Still encountering problems? Search GitHub issues or raise a new one with details to reproduce the problem. We'll do our best to help resolve it!