About dependency of all notebooks

Hey, just one more question, is the dependency for every notebook from Class1 to Class5 of ‘Deep Learning specialization’ the same?
That is : If I type !pip list
in notebook, will the result be all the same?

I managed to run some of the notebooks locally, I found it useful to type !pip list in notebooks online and download the exact version of dependency needed.
Just want to make sure I don’t need to !pip list for every notebook seperately.

Its better to check (although its probably that it is) because sometimes certain libraries get updated and if they are not used in all the notebooks then no need to updated the dependencies in all of them.

1 Like

There is no guarantee that the versions are the same in all exercises. There was a major rewrite of all the courses using TF (C2, C4 and C5) in April 2021, so for example, most courses use TF 2.3 that were re-issued at that time. But there were a few that got updated later and use TF 2.9.x.

I just checked a few in DLS C4 and the YOLO assignment (W3A1) and Face Recognition (W4A1) use TF 2.3.0. But Image Segmentation with U-Net (W3A2) and Art Generation (W4A2) use TF 2.9.1.

So as Gent says, your best bet is to check. If you need to maintain multiple environments in parallel, there are tools specifically designed for that purpose, e.g. conda.

2 Likes

Thank you so much for the information. I’m using TF2.3.0 for all the assignments mentioned above, and it seems working well locally. I just don’t sure when will all the notebooks being locked(seems they should be locked today but not).
In the future, can I just ask here for the output of !pip list of any assignment if needed? Just in case that I’m locked from the notebooks tomorrow or something.

Sure, that is a legitimate question to ask. Of course the best we can do is give you the current value that exists at the time you ask the question. If you save the assignments now, the value may be different a year from now if the assignments have been updated. Your best bet is to save this for yourself at the time that you download the notebook and associated files to your local environment. As pointed out above, it may also be different for each individual notebook.

1 Like

Yes thank you. I get the point. I did save some of the dependency lists for some of them. Just in case I missed them (I have a backup for every notebook but still…)