Open Antoine101 opened 3 months ago
@Antoine101 Thanks for the docs feedback. You may not have seen it but Lightning Flash is discontinued and archived. It won't receive any updates anymore so we can't take action on this ticket. If you are starting a new project, please reconsider using Flash, or take the bits and pieces that you need and copy them to your project.
Ok! thanks for the clarification. I would suggest you remove it from the doc then because it's still part of the 2.2.1 doc if I'm correct and I didn't see any indication it is discontinued and archived, even after double checking just now.
By taking bits and pieces, do you mean scavenge parts of what was done in flash for finetuning?
I already have a complete mid-level lightning architecture for training my model so I don't really need the abstraction of flash. I saw the BackboneFinetuning callback that could probably do what I need but I don't really know how to leverage it. I opened another issue for that to point the lack of detail in this callback's doc (issue 19711).
Can you show me where you found a reference to Flash in the Lightning docs?
By taking bits and pieces, do you mean scavenge parts of what was done in flash for finetuning?
Yes
Any of the following links:
Third link, which is a lightning.ai page:
None of these pages indicate a deprecation. Or am i mistaken?
well, if you explicitly search for Flash docs you will find it :)
Well, yes, but originally I searched "lightning finetuning" and ended up on the third link which sends me to lightning.ai and shows doc version 2.2.1. So it's fair on my end to assume it's still a thing. :-)
@Antoine101 raises a good point. https://lightning.ai/docs/pytorch/stable/ecosystem/flash.html is still getting served from somewhere and appears through Google
📚 Documentation
Hi guys,
I am trying to run this finetuning with flash tutorial: https://lightning-flash.readthedocs.io/en/stable/general/finetuning.html I pip installed flash package but as you can see below it doesn't find the core and image modules.
Your code doesn't mention the version of the flash package used for this tutorial. I don't know if it is what's causing the issue here but it would be great if you could mention the versions of packages you used to be able to reproduce your tutorials. Even though it would be ideal to have your doc the most up to date as possible, mentionning packages versions would make your doc more relevant through time.
Cheers
cc @borda
EDIT: I actually didn't install the right package. I installed flash instead of lightning-flash, which is different (still the remark on the version of packages still stands).
When lauching the tutorial, I get a missing "requests" package (shouldn't it get installed as well automatically)? And also the following error (I would expect to copy paste and run a tutorial without any problem):
EDIT2: NameError in EDIT comes from the fact that I didn't have torchvision installed, only torch (it should be mentionned to install torchvision as well). So in input_transform.py, it wasn't entering the if:
After that, the code fails at model creation as shown below: I have lightning-flash installed now but it is not sufficient apparently. Running: doesn't work, nor runing without quotes.
EDIT3: Managed to do a
pip install lightning-flash[image]
(without quotes contrary to what is written in this doc https://lightning-flash.readthedocs.io/en/stable/installation.html) after uninstallinglightning-flash
. But the code still doesn't find this dependency.EDIT4: It works if I create an environment and only
pip install "lightning-flash[image]==0.8.2"
with double quotes instead of single ones, and without installing torch and torchvision separately first. However I am now left with the following error:Sorry if this is messy I am modifying the issue as I progress into the tutorial and see stuff to improve or clarify!