-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe indicate how to install transformers dependency? #245
Comments
Hi @FlorisCalkoen, Thank you for your interest in the CoastSeg's coastal DL model and for detailing your setup. Regarding the installation of the transformers library, the general recommendation for most users is to use:
This method has proved effective in most cases. Our team has explored a few alternative methods such as pip install transformers[tf-cpu], but this specific installation option has not been successful in our tests and might not be compatible with the TensorFlow version you are using. We understand the importance of supporting various operating systems and installation methods. However, due to the complexity involved in maintaining compatibility between transformers and TensorFlow across different platforms, our resources are currently limited. Specifically, our team does not have access to Mac computers, which restricts our ability to test and provide tailored support for MacOS. |
I want to provide some additional context as to why CoastSeg isn't using other versions of tensorflow or transformers. Coastseg deliberately utilizes only the CPU versions of machine learning libraries like Tensorflow because CoastSeg doesn't rely on the GPU for model inference. We have attempted on multiple occasions to integrate GPU-accelerated workflows into CoastSeg. However, the complexity of setting up CUDA drivers and the inconsistent support for TensorFlow across various platforms have presented significant challenges. After careful consideration, we decided to prioritize a CPU-only approach to avoid these complexities and ensure that CoastSeg remains as compatible and user-friendly as possible across all supported platforms. |
Good points being discussed here, thanks. @2320sharon I'm curious as to why Floris, as you will have seen, our website Zoo page is still under development. I recommend the following environment if you planned to contribute new DL models to this project. Thanks for the offer! That would be great. We don't have the bandwidth to train new models at the moment. Assuming you are on Linux (recommended for any DL model training workflow - dont mess around with trying to get things to work on Mac or Windows, you'll be there all week) set up miniconda:
then set up mamba:
then configure your GPU dependencies
then finally the rest of the dependencies
If you are contributing a new model, you'll be using Segmentation Gym, and these install instructions and more are detailed on the readme there |
ping #openjournals/joss-reviews#6683
I'm particularly interested in CoastSeg' coastal DL model, so I'm currently installing everything on my PC. So far I have managed to install Tensorflow, but I see in your docs that I also need transformers. Since the installation requirements for all ML libs you use so far where more specific than the regular python libraries, I checked out the transformers docs. However, there I see that there are a whole lot of different ways of installing transformers, also depending on used TF version. Can you maybe provide some guidelines on which one to pick?
I'm a MacOS user, with this CoastSeg and Tensorflow version:
https://huggingface.co/docs/transformers/en/installation
The text was updated successfully, but these errors were encountered: