Это видео недоступно.
Сожалеем об этом.

Installing TensorFlow/Keras CPU/GPU w/CONDA (July, 2020)

Поделиться
HTML-код
  • Опубликовано: 4 авг 2020
  • This video shows how to set up a CONDA environment containing Keras/Tensorflow and several useful machine learning libraries. CONDA allows you to isolate the GPU drivers into a self-contained environment that greatly simplifies the installation process. The setup shown by this video is designed for my deep learning course; however, it can also serve as a foundation for any deep learning study.
    ** Follow Me on Social Media!
    GitHub: github.com/jef...
    Twitter: / jeffheaton
    Instagram: / jeffheatondotcom
    Discord: / discord
    Patreon: / jeffheaton
    The GPU used in this video was an NVIDIA TITAN RTX:
    nvda.ws/2OoXLG7
    The following GitHub page contains the steps followed in this video:
    github.com/jef...
    My Deep Learning course can be found here:
    sites.wustl.ed...

Комментарии • 232

  • @srinivasyerraguntla3114
    @srinivasyerraguntla3114 4 года назад +3

    Thank you so much. I have been struggling with tensorflow-gpu setup errors for days. Your videos have really helped me. I finally got it to work.
    I am also a huge fan of your playlist on Deep Neural Networks. It has been very helpful to me. Thanks again.

    • @HeatonResearch
      @HeatonResearch  4 года назад

      Glad it helped! Thanks for your comment.

    • @erwinrommel5593
      @erwinrommel5593 4 года назад

      is it possible for us to run pythoncodes using gpu but without gpu, am stuck can you help

  • @ht2239
    @ht2239 4 года назад +7

    Glad to see that prof is still next to the backbone of the internet lol

  • @God-ib7xc
    @God-ib7xc 3 года назад +9

    bruh this is actual hell, I hate doing this stuff. Thanks for making it easier

  • @50HotPotatoes
    @50HotPotatoes 4 года назад +6

    Concrete and precise ! Loved the way you walked through the entire process.

  • @stevedevney7322
    @stevedevney7322 3 года назад

    I screwed up my Tensorflow environment this weekend. Followed Jeff’s instructions and was going again in under an hour!!!!
    Last time I think it took 6!
    These are awesome

  • @microwavecoffee
    @microwavecoffee 2 года назад +1

    thank you professor, this is super helpful
    edit: as a note, the gpu didn't work for me with python 3.8 but it worked when i changed it to 3.7.7 [windows]

  • @grah2561
    @grah2561 3 года назад

    tried it in anaconda 3.8 - no gpu. Went for Minicoda, the exact 3.7 one in the video, followed everything. GPU is available :)
    Maximum joy. Thanks Jeff.

  • @GeneralKenobiYouAreABoldOne
    @GeneralKenobiYouAreABoldOne 4 года назад +1

    Thank you professor. I've been trying to do this for weeks, but I failed every time. But when I followed your instructions today, it worked like magic! I also have a friend who is having trouble installing, and I sent him the link :) Thank you so much!!!

  • @josephsuper600
    @josephsuper600 3 года назад

    Thanks for the video, is helping getting the job done!
    just a note:
    pip is no longer included in conda installer, so you should modify the tools.yml adding pip:
    # conda create --name tensorflow-cpu python=3.8
    # conda install jupyter
    # conda install nb_conda
    # conda install -c anaconda tensorflow
    # conda env update --file tools.yml
    dependencies:
    - pip
    - jupyter
    - scikit-learn
    - scipy
    - pandas
    - pandas-datareader
    - matplotlib
    - pillow
    - tqdm
    - requests
    - h5py
    - pyyaml
    - flask
    - boto3
    - pip:
    - bayesian-optimization
    - gym
    - kaggle

  • @s.m.naimurrhamansayam4884
    @s.m.naimurrhamansayam4884 3 года назад +8

    "conda install -c anaconda tensorflow-gpu" Doesn't work for me. It shows "PackagesNotFoundError: The following packages are not available from current channels:", Please help me.

    • @3monsterbeast
      @3monsterbeast 3 года назад +1

      Check your Python version maybe

    • @alexdebelle4944
      @alexdebelle4944 3 года назад

      On TenforFlow's install GPU support page it says you no long need to use the -gpu, so instead try "conda install -c anaconda tensorflow" as this should work for both GPU and CPU

  •  3 года назад

    You, sir, are the best explaining how to do this. For the first time, I did successfully installed Tensorflow for GPU. I am subscribed now

  • @abhishekbhalla3883
    @abhishekbhalla3883 3 года назад +1

    Thank you sir for making such an informative video. I finally now have tensorflow on my system after 2 days of struggle

  • @renalfarhan6615
    @renalfarhan6615 4 года назад +5

    if i run code script that u share on the github page , "GPU is NOT AVAILABLE" how to solve it sir ?

    • @lesliedouglas3622
      @lesliedouglas3622 3 года назад

      I have the same issue, I have an NVIDIA GeForce GTX 1060. What about you?

  • @TheWecanman
    @TheWecanman 3 года назад

    Thank you Jeff! I have tried so many other tutorials on this issue, but none of them worked... Your Tutorial is realy simple and straigt to the point with some useful information!

  • @karolinaswiergaa9537
    @karolinaswiergaa9537 2 года назад

    Thank You for that video, I've tried a lot of guides, but only your helped me to configure tensorflow with GPU with anaconda and jupyter!

  • @heyrmi
    @heyrmi 4 года назад

    I have always hated this environment setting and almost never did it right way. Thus ending up installing TF-CPU, this time around it was done the right way.
    Thank you.

  • @aaronselvam6729
    @aaronselvam6729 2 года назад

    Thank you so much! I've been looking for this for ages!

  • @ajayguru2116
    @ajayguru2116 4 года назад +1

    Thank you for posting this, recently shifted to windows os and your yt channel has been a life saver

  • @cgatzoulis
    @cgatzoulis 3 года назад +1

    Thanks a lot for the tutorial. I used anaconda instead and noticed that if i use the command prompt or powershell i get a lot of issues (conflicts). Using the anaconda prompt instead resolved everything. Just thought sharing this, and again many thanks to Jeff for the tutorial, well presented.

    • @sonnechen9562
      @sonnechen9562 Год назад

      hey I faced the same issue and solved it with your suggestion! Many thanks!

  • @Anjy2709
    @Anjy2709 3 года назад +1

    sir i have phython version 3.9 and I am getting an error the version is not supportable with tensorflow

  • @JIAmitdemwesen
    @JIAmitdemwesen 3 года назад +2

    I tried this on the 18th of December 2020. By now there is a new version of python available 2.8. I changed the version of python in the setup of the environment from 2.7 to 2.8. Everything installed without any error but the final check told me that the GPU is not available. So I repeated the process with the 2.7 version and everything went fine. GPU is now available. On a side note: I like how easy this was compared to when I did this with the full driver setup.

    • @IpushironAgkyra
      @IpushironAgkyra 3 года назад

      This is exactly the problem I had. It told me "GPU NOT AVAILABLE" when I finished. As of Dec 2020, TF is not compatible with Python 3.8 or 3.9. You must use 3.7 to avoid this problem.

  • @muriloaraujosouza462
    @muriloaraujosouza462 2 года назад

    Hello,
    I'm getting a "The procedure entry point could not be located in the dynamic link library" Error when trying to register my environment. Something related to this path C:\Users\Me\miniconda3\Library\bin\pythoncom38.dll

  • @dafaberlian
    @dafaberlian 3 года назад +1

    hi, I'm using nvidia geforce gtx 1050ti, I also already installed the driver, cuda toolkit, and cudnn. I've tried to install TF via anaconda, but it always cannot read my gpu. I've also test it using your code,
    Tensor Flow Version: 2.3.0
    Keras Version: 2.4.0
    Python 3.8.10 (default, May 19 2021, 13:12:57) [MSC v.1916 64 bit (AMD64)]
    GPU is NOT AVAILABLE
    could you help me with that? Thank you

    • @HeatonResearch
      @HeatonResearch  3 года назад

      It should work. I would suggest trying to get to the exact error it is reporting and google that. I do not have experience with this specific GPU, though.

  • @thesiriuss2332
    @thesiriuss2332 Год назад

    Спасибо большое за видео! Очень подробный гайд, к сожалению не смог установить gpu версию Tensorflow, но думаю, что на первое время хватит и обычной cpu версии. Удачи!

  • @gl7512
    @gl7512 3 года назад +3

    Thx Prof. for your directions. It helps a lot. BTW, it seems that Python 3.8 + CUDA 10.1 + cuDNN 7.6 do not work with Tensorflow-gpu 2.3.0...

    • @tmnic6971
      @tmnic6971 3 года назад

      yep I don't think it works, im getting an error that says not module named 'flatbuffers' found

  • @seaatm
    @seaatm 2 года назад

    Hello Jeff, I installed tensorflow-gpu version and the installation ran well and it looked like everything was working but I got the message GPU is NOT AVAILABLE when I ran the jupyter notebook, could you help me?

  • @Brocollipy
    @Brocollipy 3 года назад

    Wow thank you so much.. it all actually worked! I started the process fully expecting to run to Colabs but it all went fine. Thankfully the gpu all worked fine too without errors and the need for drivers. I'm running a GeForce GTX 1660 Ti.

    • @Brocollipy
      @Brocollipy 3 года назад

      @Aashik Sharif B I didn't need to install any drivers. 😁

  • @Johansen3D
    @Johansen3D 3 года назад +3

    Thank you for the tutorial. I have an issue at the: "conda env update --file tools.ym" step. The cmd floods with "Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you." - in an endless loop.

  • @Rovetown
    @Rovetown 3 года назад +1

    Did everything as you did in the Video, but this comes up:
    Tensor Flow Version: 2.3.0
    Keras Version: 2.4.0
    Pythin 3.8.5
    Pandas 1.2.2
    Scikit-Learn 0.23.2
    GPU is NOT AVAIBLE
    Im on a GTX 1080. Any ideas?

    • @erickgomes6442
      @erickgomes6442 3 года назад

      I got the same issue, did you fix this?

  • @isaacgomez2425
    @isaacgomez2425 3 года назад

    Thank you very much, it really helped me to install tensorflow for gpu quickly, after several hours trying other tutorials out there!

  • @christopherma5445
    @christopherma5445 3 года назад +1

    hi Professor. Where can I get the download link for Window Miniconda Python3.7 ? they got only the 3.8 version on the website

  • @mohamadrezabidgoli8102
    @mohamadrezabidgoli8102 3 года назад

    FINALLY, I GOT IT RUNNING AFTER LOTS OF TUTORIALS I TRIED! THANKS

  • @kenchang3456
    @kenchang3456 4 года назад +1

    Hi Jeff. I see that you do a fresh Win 10 environment, install your stuff, play around, and then toss it when you don't need it or things change. For those of us that can't do that would your installation instructions work in a docker Win 10 environment as well? I'm not sure how the CUDA drivers install would work with Docker. Thanks for sharing your knowledge and making the effort to keep your content as up to date as possible :-)

    • @HeatonResearch
      @HeatonResearch  4 года назад +1

      I happened to have just built a machine. However, I usually test on a clean virtual box just to be sure I am not skipping something that was already setup. I do have a Docker image, GPU is a bit more tricky with Docker. I've done Linux hosts with NVIDIA-Docker, not entirely sure that works on Windows. Probably would with WSL. Here is my docker image. hub.docker.com/r/heatonresearch/jupyter-python-r

    • @kenchang3456
      @kenchang3456 4 года назад

      @@HeatonResearch Excellent, thanks for replying.

  • @DeepPatel-lz8fj
    @DeepPatel-lz8fj 3 года назад +2

    Thank you very much sir after 6 hours of trial and error this worked perfectly for me :D

  • @nidafatima7268
    @nidafatima7268 3 года назад

    Thank you so much Prof. Heaton

  • @itjustmemyselfandi
    @itjustmemyselfandi 3 года назад

    When jupyter open, it doesn't look like this 15:48. And when i click to zip, it errors:
    Error! C:\Users\admin\Downloads\Miniconda3-py39_4.9.2-Windows-x86_64.exe is not UTF-8 encoded
    Saving disabled.
    See Console for more details.

  • @PlanetarFractals
    @PlanetarFractals 3 года назад

    Install Additional Libraries for ML;
    (tensorflow) C:\Users\LAPTOP>conda env update --file tools.yml
    EnvironmentFileNotFound: 'C:\Users\LAPTOP\tools.yml' file not found
    Any Idea on how to proceed here, i am stuck with installing additional libraries :( (Python 3.9 all ready installed)

  • @vinaypatil7293
    @vinaypatil7293 3 года назад

    Thank you very much for this tutorial. I was able to install tensorflow without any issues. This would be one of the most helpful videos.

  • @andisyamsul8066
    @andisyamsul8066 3 года назад +2

    Here's a tip for newly Pythonista, make sure that your user-folder name didn't use a space because for the love of god it pains me a lot the first couple week trying to install a python.

    • @HeatonResearch
      @HeatonResearch  3 года назад +2

      Spaces in folder and file names are the root of all evil.

  • @ma.christinavinarao8837
    @ma.christinavinarao8837 3 года назад +1

    gud morning Sir jeff I successfully installed tensorflow with gpu but when i install addtnl librriaries here is the error Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you. pls help tnx

    • @redreve7214
      @redreve7214 3 года назад

      I had the same problem and solved it like explained here stackoverflow.com/questions/67081266/conda-yml-file-prompts-please-add-an-explicit-pip-dependency . Hope it helps you.

  • @Aaron-on3ro
    @Aaron-on3ro 3 года назад

    conda install -y jup says "conda is not recognized as an internal or external command" .. when done inside of the anaconda prompt, it says it is collecting package metadata, then says "packagesnotfounderror: the following packages are not available from the current channels" - jupiter" ... tried various different spellings, jup, jypiter, jupiter, all same error

  • @zstt5465
    @zstt5465 3 года назад

    Jeff I cannot thank you enough for this video! You've helped so many people

  • @Hodbrook
    @Hodbrook 3 года назад

    Hi Jeff, I got an error while trying to install the tensorflow-gpu version as you did in the video above. See below for error:
    InvalidArchiveError('Error with archive C:\\Users\\Ivan Aerlic\\.conda\\pkgs\\cudatoolkit-10.1.243-h74a9793_0.tar.bz2. You probably need to delete and re-download or re-create this file. Message from libarchive was:

    bzip decompression failed'). Please let me know what you think when you have a spare moment. Thank you.

  • @mpgrewal00
    @mpgrewal00 3 года назад +5

    2:30 thanks for clarifying windows activation. That will keep the trolls shut.

  • @adityamangla7502
    @adityamangla7502 3 года назад +1

    Hey, anaconda latest version is available with python 3.8 but TensorFlow 2.1 does not support this python version so how can we install anaconda with python 3.7 only and please don't tell me to create a venv.

    • @AliShan-es5qg
      @AliShan-es5qg 3 года назад

      hey bro did you get the answer for that problem i am facing the same issue

  • @turbocpt1
    @turbocpt1 3 года назад

    I am getting "GPU is NOT AVAILABLE" yet I have everything in place for my RTX 2070 and I did use "conda install -c anaconda tensorflow-gpu"

  • @kasinathrajesh52
    @kasinathrajesh52 4 года назад +3

    Thank you Very much sir for the video, it worked.

  • @TheJlter
    @TheJlter 3 года назад

    Thanks - it worked with python=3.7, but does not seem to work with python=3.8 environment - no GPU is showing up, even though TF v. 2.4 should work fine with 3.8 ...

  • @randomforrest9251
    @randomforrest9251 3 года назад

    I get this:
    Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
    [[node model/conv1d/conv1d (defined at :3) ]] [Op:__inference_distributed_function_1394]
    Function call stack:
    distributed_function
    when i try to train one epoch with a cnn =(

  • @joelfitzgibbon685
    @joelfitzgibbon685 3 года назад

    Heya, I seem to have a little problem. When I go to install the tools.yml the cmd fills with "Conda may not use the correct pip to install your package, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging.". It has been doing this for a while is this normal?

    • @ewertonsantos5174
      @ewertonsantos5174 3 года назад

      I just skipped this step and in the end when I run the scan I received some import errors. To solve it, go into the anaconda navigator -> environments -> tensorflow and looked for "pandas" and "scikit-learn" in not installed. Run the verification again and all be fine. Remember to use python 3.7.10 (latest python 3.7 version) to use GPU in tensorflow.
      Edit1: To donwgrade python run: conda install python=3.7 in your Prompt or anaconda Prompt

  • @bellemarravelo6002
    @bellemarravelo6002 3 года назад

    Correction on 7:18 "conda install -y jupyter" use this if not success using jup only...

  • @saurabhtripathi62
    @saurabhtripathi62 3 года назад

    Really good video, it was very in-depth and nice. Thanks for sharing.

  • @AliShan-es5qg
    @AliShan-es5qg 3 года назад +1

    sir i could not install python 3.7 because it is not available on the website now

  • @salvinprasad8592
    @salvinprasad8592 3 года назад

    Dear Professor, I have installed tensorflow in anaconda (not miniconda). I have done my image segmentation using python 3 but when I run tensorflow for deep learning (CNN-LSTM or convLSTM), a pop up comes mentioning that the kernel has died and it will activate automatically. However, it does not activate. I tried my best to fix this but was unsuccessful. I would be really grateful for your kind advice as I have to run deep learning models for my PhD

  • @Balloonlol84
    @Balloonlol84 3 года назад

    Ok, I did this: python -m ipykernel install --user --name tensorflow --display-name "Python 3.7 (tensorflow)" some times with different names and now I have a gazillion kernels... how do I remove the unwanted ones?

  • @amirshakiba9102
    @amirshakiba9102 2 года назад

    dude I came here to see cuda installation and it was "hope it magically works:D"

  • @imdadulhaque9757
    @imdadulhaque9757 4 года назад

    I could not downloaad "t81_558_deep_learning" folder from your given link, It doesn't show file size and continuously donwloading. I used IDM for downloading. please help me.

  • @stevepage007
    @stevepage007 3 года назад

    thanks Jeff, so helpful, no issues at all amazing.

  • @Firedfuture
    @Firedfuture 2 года назад

    I tried following this tutorial but jupyter notebook just opens a blank tab when I use it

  • @ammarfahmy906
    @ammarfahmy906 3 года назад

    Sir, please can u suggest me the current CUDA and cuDNN versions for my GPU (GTX 1060 6gb) ?
    I have tried a lot.. in the end my gpu is not detected by TF ..

  • @Lowzenza4
    @Lowzenza4 4 года назад

    The error I am getting now at the command where we use python to install the ipykernal is this:
    ImportError: cannot import name 'generator_to_async_generator' from 'prompt_toolkit.eventloop' (C:\Users\Lowz\Anaconda3\envs\tensorflow\lib\site-packages\prompt_toolkit\eventloop\__init__.py)
    What is happening here??
    EDIT: It seems there is an error right now with the ipython and prompt-toolkit versions being incompatible. ipython 7.17.0 requires prompt-toolkit to be less than 3.0.01 but greater than 2.0.0, but jupyter-console requires prompt-toolkit version less than 2.0.0 but greater than 1.0.0. So...how can this be possible to work around?
    EDIT2: Okay for those of you using python 3.7.7, if you just change the "Python 3.7" flag in the command to "Python 3.7.7" it should work -it did for me after uninstalling prompt-toolkit and just reinstalling the latest version which was 3.0.6 at this time.

  • @oguzcanbekar2536
    @oguzcanbekar2536 3 года назад

    Hello Mr. Heaton Thank you very much for this helpful download video, but I have a question that when we want to use this environement again for our codes should we enter this folder everytime? Or after write that conda activate tensorflow can we use directly with gpu? Thank you very much again.

  • @julianatellez7224
    @julianatellez7224 3 года назад

    Hello jeff, I'm starting in this world of neuronal networks, I have a question about of this topic: Do you know if is possible to configurate like as gpu an integrate gpu how is AMD with Radeon vega 11? I configurated the enviroment wirh cpu but i want to know if is possible configurate that GPU. Thanks!

  • @bellemarravelo6002
    @bellemarravelo6002 3 года назад

    13:44 if didn't work, the files you downloaded transfer it to the specific director...mine is "this PC > LOCAL C > WINDOWS > SYSTEM 32", and then it work...

  • @Baiferntruz
    @Baiferntruz 4 года назад +4

    your videos are very helpful always

  • @prajwalbanagar3179
    @prajwalbanagar3179 3 года назад +1

    conda install nb_conda wont work for python 3.9 and higher

  • @mohamedtarek8899
    @mohamedtarek8899 3 года назад

    hey sir, every time i follow steps this error which is about missing DLL files
    ``` >>> import sys
    >>> print(f"Python {sys.version}")
    Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
    >>> gpu = len(tf.config.list_physical_devices('GPU'))>0
    2020-10-01 16:28:09.086099: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library nvcuda.dll
    2020-10-01 16:28:09.115435: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
    pciBusID: 0000:01:00.0 name: GeForce GTX 1660 Ti computeCapability: 7.5
    coreClock: 1.59GHz coreCount: 24 deviceMemorySize: 6.00GiB deviceMemoryBandwidth: 268.26GiB/s
    2020-10-01 16:28:09.115645: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll
    2020-10-01 16:28:09.118208: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cublas64_10.dll'; dlerror: cublas64_10.dll not found
    2020-10-01 16:28:09.119406: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
    2020-10-01 16:28:09.120489: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
    2020-10-01 16:28:09.121608: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
    2020-10-01 16:28:09.140394: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusparse64_10.dll
    2020-10-01 16:28:09.190095: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudnn64_7.dll
    2020-10-01 16:28:09.190337: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1753] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
    Skipping registering GPU devices...
    >>> print("GPU is", "available" if gpu else "NOT AVAILABLE")
    GPU is NOT AVAILABLE
    ```

  • @Advaith_rao11
    @Advaith_rao11 3 года назад

    i have installed tensorflow gpu same but i am getting error no module named keras...but is it necessary to download again keras directly?

  • @bellemarravelo6002
    @bellemarravelo6002 3 года назад

    I have question, what if i install "conda install -c anaconda tensorflow", can i change to "conda install -c anaconda tensorflow-gpu"? ?

  • @evgenykirshin1004
    @evgenykirshin1004 3 года назад

    Installation went well, except GPU support (Geforce GTX 1050) - gave me error at the last (validation) step. What helped me is just installing latest supported NVIDIA driver for my card (after updating driver I just re-ran the validation code and GPU was found).

  • @timothyking3759
    @timothyking3759 2 года назад

    Thanks for the video and detailed instructions--very nice!
    10 Sept 2021: I tried python 3.8, like the current instructions said, but I got "GPU not available" (I have RTX 2070 in a laptop with win 10 build 19043).
    then i re-made the environment to use python 3.7 and now i get "GPU is available".

    • @HeatonResearch
      @HeatonResearch  2 года назад

      Glad it helped! I guess they updated something.

    • @dadsview4025
      @dadsview4025 2 года назад

      I'm in the same place with Anaconda and python 3.8. Can I ask how you "remade the environment to use 3.7"?

    • @dadsview4025
      @dadsview4025 2 года назад

      Nevermind. Figured it out by installing tensorflow-gpu 2.5.0 see my message above

  • @sheikhaalmannaei4660
    @sheikhaalmannaei4660 3 года назад

    "AttributeError: module 'tensorflow_core.python.keras.api._v2.keras.activations' has no attribute 'swish' " i got this error when i tried to run my NLP code that requires CUDA

  • @Ashish-rv5wb
    @Ashish-rv5wb 3 года назад

    Hi Jeff, I am using TensorFlow version 1.0.0 with python 3.5 to train my RNN model on Anaconda spyder. But now since I started the training I found out that it maxes out my CPU. I have an NVIDIA graphics card GTX 1050 and want to use it with minimal changes in my code. How can I do this.

  • @gajendrasuthar101
    @gajendrasuthar101 3 года назад

    Thank you! That was really helpful, things lot easy by this tutorial..
    Thank you once again
    Love from india❤️

  • @pfever
    @pfever 3 года назад

    This is so helpful professor! Thank you for this and your amazing course! :D

  • @davi2.4.58
    @davi2.4.58 Год назад

    Muito obrigado, você me ajudou muito de verdade, já fazia tempo que eu estava com problema na GPU

  • @ahbazmemon9369
    @ahbazmemon9369 3 года назад

    I went through the entire process's best explanation. but the auto-completion code is not working in the new environment I tried nb_extensions also. can you help?

  • @whyligh13
    @whyligh13 3 года назад

    Any chance you can post the versions you're using for Tensorflow/Keras/Python/etc? I am using Miniconda with Jupyter and always seem to run into another rabbit hole because one version supports a certain module, but not a different module and when I update to meet the module requirement, the new version doesn't support a different module...Like I said. Rabbit hole. Thanks!

  • @eldrigeampong8573
    @eldrigeampong8573 3 года назад

    Thanks a lot Prof Heaton. This video helped me a lot.

  • @bennettbrixen2467
    @bennettbrixen2467 3 года назад +2

    hello! did you ever end up making the video on how to install the cuda drivers for a linux dual boot on windows 10? :)

    • @zaneflory
      @zaneflory 3 года назад

      This man needs to make a rocket. Said video would be greatly appreciated

    • @HeatonResearch
      @HeatonResearch  3 года назад

      @@zaneflory Right! I will get on that. I've actually been wanting to do that since about age 10. :-)

    • @HeatonResearch
      @HeatonResearch  3 года назад

      Not yet, dual boot linux and configuring local linux for AI is coming, though.

    • @zaneflory
      @zaneflory 3 года назад

      @@HeatonResearch Thanks! Me and Bennett here are working together on a project and TensorFlow is giving him many many issues haha

    • @bennettbrixen2467
      @bennettbrixen2467 3 года назад

      @@HeatonResearch a video about linux based systems with cuda would be much appreciated (but no pressure i might be able to figure it out on my own).
      the problem im having is i dont have libcublas.so.10.0 packed with the rest of my cuda library. currently i believe that this problem is due to the fact that i am using python3.8, which only supports tensorflow version 2.2.0 or 2.3.0 (not 2.0.0), both of which support cuda-10.1 or higher. since the release of cuda-10.1, libcublas has not been prepackaged with the rest of the cuda library.
      correct me if i am wrong here, but should i be using python3.7 so that i can use tensorflow 2.0.0 which supports cuda-10.0 (this is the latest version with libcublas prepackaged)?

  • @jcmozart5016
    @jcmozart5016 3 года назад

    I have an error at the point were you install the additional libraries for ML. The line used in command prompt is "conda env update --file tools.yml" All the stepts up until this point worked fine but once i put this in the command prompt in said that "EnvironmentFileNotFound: 'C:\Users\User\tools.yml' file not found" If anyone has a solution to this please post it in the reply comment to this comment. Thanks.

    • @stefanrakuff1425
      @stefanrakuff1425 3 года назад

      I copied the file 'tools.yml' to my active directory, and it worked. Make sure you have write access for that directory.

    • @jcmozart5016
      @jcmozart5016 3 года назад

      @@stefanrakuff1425 Thanks for the help have good day.

  • @calex9962
    @calex9962 3 года назад

    I wonder who dosen't know what a gpu is and actuallely needs this video :)

  • @uglyhobo99
    @uglyhobo99 3 года назад +1

    Great vid!

  • @lipsamishra8793
    @lipsamishra8793 2 года назад +1

    Very helpful sir ...can you help me out for my phd related work on retinal segmentation

    • @HeatonResearch
      @HeatonResearch  2 года назад

      That sounds very interesting; however, my bandwidth for side projects is not good.

  • @razzaqhalim1946
    @razzaqhalim1946 3 года назад

    great video sir, I just want to know. if I installed python ver 3.9 and im using the latest miniconda3 that use python 3.8. will it affect the miniconda if I tick the box of "add miniconda3 to my PATH environment variable".??

    • @razzaqhalim1946
      @razzaqhalim1946 3 года назад

      at 8:52 , you use python= 3.7 because tensorflow required to use that version or because based on miniconda python version u downloaded?. mine use python 3.8 for the miniconda. should I write conda create --name tensorflow python=3.8??

  • @lesliedouglas3622
    @lesliedouglas3622 3 года назад

    Tensor Flow Version: 2.4.0
    Keras Version: 2.4.0
    Python 3.8.5 (default, Sep 4 2020, 02:22:02)
    [Clang 10.0.0 ]
    Pandas 1.1.5
    Scikit-Learn 0.23.2
    GPU is NOT AVAILABLE
    I have an NVIDIA GeForce GTX 1060 6 GB

  • @tivasalvation
    @tivasalvation 4 года назад

    I have been having a hard time with conda installation on my PC. It don't seem to show the navigation menu anywhere and when I click on the Anaconda cmd, it opens and closes almost immediately. I've tried different suggestions but it hasn't been better, will love to hear from you also

  • @IAmTheMainCharacter
    @IAmTheMainCharacter 4 года назад

    hi sir,
    I have a question.
    when startup deploys their models on cloud, I don't think they would be running instance 24*365 it would be very costly.
    can you please explain how they do it?

    • @HeatonResearch
      @HeatonResearch  4 года назад +1

      The cloud can get costly. My only suggestion is to use automation and use for only as much time as is needed. Also do not use more hardware than you need. Multiple GPUs won't help some models.

  • @user-wt9xo5ys1m
    @user-wt9xo5ys1m 3 года назад

    Thank you for your videos, looking for your help guys, I installed Python 3.8 on my Windows when I got to install tensorflow with the command " conda install -c anaconda tensorflow" an error says its incompatible, your advice please

    • @mustafaalrasheed8901
      @mustafaalrasheed8901 3 года назад +1

      حبيبي نزل بايثون نسخة ٣.٧ لان النسخة الي منزلها بعدها متدعم ال tensorflow

  • @mikehawk69101
    @mikehawk69101 4 года назад

    Thanks for the vid! I had a problem where when I tried to run the
    t81_558_class_01_1_overview on jupyter notebook, this error occurs: AttributeError: module 'tensorflow' has no attribute 'compat'. Id appreciate any help!

    • @HeatonResearch
      @HeatonResearch  4 года назад

      Some suggestions here on this error: github.com/tensorflow/tensorflow/issues/37525

  • @hakunamatata4677
    @hakunamatata4677 3 года назад

    [WinError 87] The parameter is incorrect at cmd, anyone know what my problem?

  • @erwinrommel5593
    @erwinrommel5593 4 года назад

    is it possible for us to run python codes using gpu but without virtual environment am stuck can you help

  • @rtr195807
    @rtr195807 3 года назад

    Many, many thanks for your help.

  • @3d-illusions
    @3d-illusions 3 года назад

    Thanks for the video, after days of trying I finally managed to get the gpu recognised as a device in spyder.
    I wonder if you can help further. I'm getting the below error in jupyter when I try fit a model.
    ~\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\eager\execute.py in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
    65 else:
    66 message = e.message
    ---> 67 six.raise_from(core._status_to_exception(e.code, message), None)
    68 except TypeError as e:
    69 keras_symbolic_tensors = [
    ~\AppData\Roaming\Python\Python37\site-packages\six.py in raise_from(value, from_value)
    UnknownError: [_Derived_] Fail to find the dnn implementation.
    [[{{node CudnnRNN}}]]
    [[sequential/gru/StatefulPartitionedCall]]
    [[Reshape_9/_26]] [Op:__inference_distributed_function_2575]
    Function call stack:
    distributed_function -> distributed_function -> distributed_function

    • @3d-illusions
      @3d-illusions 3 года назад

      solved with this:
      import tensorflow as tf
      physical_devices = tf.config.list_physical_devices('GPU')
      tf.config.experimental.set_memory_growth(physical_devices[0], enable=True)

  • @nohazaki58
    @nohazaki58 3 года назад

    Thanks so much for the useful video I followed everything and it appeared that tensorflow uses GPU but every time I try to continue a message appears in jupyter NB : Kernel appears to have died it will restart automatically , Also this error appears
    : Attempting to fetch value instead of handling error Internal: failed to get device attribute 13 for device 0: CUDA_ERROR_UNKNOWN: unknown error
    I don't know why .. so could you help me solving such problem ? thank you so much

  • @GoesTeeVisuals
    @GoesTeeVisuals 3 года назад

    After using (conda env update --file tools.yml) I get a infinite error:
    Warning: you have pip-installed dependencies in your enviornment file, but you do not list pip instelf as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. please add an explicit pip dependency. I'm adding one for you, but still nagging you.

  • @etrieusvet2070
    @etrieusvet2070 4 года назад +1

    also help it cmd prompt will say conda is not recognized as a command

    • @etrieusvet2070
      @etrieusvet2070 4 года назад

      wait nvm i used the miniconda prompt

    • @HeatonResearch
      @HeatonResearch  4 года назад

      @@etrieusvet2070 Yeah that is a common problem. Glad you found it!

  • @ybanrab10
    @ybanrab10 4 года назад

    Thanks for the video, but installing nb_conda and registering my new environment to it completely hosed my iPython kernels so that notebooks and Jupyter Lab wouldn't work at all, necessitating a complete reinstall of Miniconda. Perhaps that was because notebook, lab, and dependencies were installed in my new env, not in my base env as you showed. I never install any packages into my base Miniconda env, just anaconda-navigator. I don't think nb_conda is necessary for a Data Science environment, as it adds an intense layer of complexity on top of Jupyter. I think it's better to manage conda from conda itself and keep things as simple as possible to avoid problems. Notebook from the pkg-main conda channel installs a nice shortcut in the Windows Start menu that will run notebook from whichever environment(s) into which it was installed, so there is no need to mess around with changing environments and kernels from the notebook menu as with nb_conda.
    However, nb_conda has enough interesting tech that I will try it at some point in the future. Thanks for the heads-up about it.
    Also, and very importantly, using python 3.7 and tensorflow 2.1.0 under conda will work fine ONLY if tensorflow-estimator 2.1.0 is installed. If tensorflow-estimator 2.2.0 is installed from conda-forge, tensorflow/keras will not work at all (see many posts about that on github).

  • @solques36
    @solques36 3 года назад

    Hi i have a problem when using keras with this. the error says keras requires tensorflow 2.2 and above . Could u help me?

    • @sadiaislammim5869
      @sadiaislammim5869 3 года назад

      I have the same problem. Did you get any solution?

  • @ammarazlan2919
    @ammarazlan2919 3 года назад

    How to activate conda environment from python script?