bstriner / keras-tqdm

Keras integration with TQDM progress bars
MIT License
348 stars 41 forks source link

keras-tqdm in Anaconda #19

Open pluviosilla opened 6 years ago

pluviosilla commented 6 years ago

I tried the following:

But I get errors. I don't suppose there's a nice cookbook way to install this in a conda environment, is there?

bstriner commented 6 years ago

@pluviosilla you should be able to just use standard methods like pip install keras-tqdm. Just make sure you activate the correct conda environment first. The package is pure python so shouldn't have build issues like other modules. If you let me know where you run into problems I can post some more instructions on the README.

bstriner commented 6 years ago

Shouldn't have to make that folder yourself. Run setup.py from wherever you checked out the code and it should create that folder. What errors are you getting?

Use setup.py install if you just want to install it. setup.py develop if you might be making some changes to the code.

Might need to uninstall or delete the folder you created first.

pluviosilla commented 6 years ago

I got the app installed. Thank you very much for your help, but I get errors when I run Francois Chollet’s LSTM sample code with the TQDM callback in the parameter list of the fit() method (see attachments).

John Strong

From: Ben [mailto:notifications@github.com] Sent: Sunday, October 08, 2017 5:10 PM To: bstriner/keras-tqdm Cc: John Strong; Mention Subject: Re: [bstriner/keras-tqdm] keras-tqdm in Anaconda (#19)

Shouldn't have to make that folder yourself. Run setup.py from wherever you checked out the code and it should create that folder. What errors are you getting?

Use setup.py install if you just want to install it. setup.py develop if you might be making some changes to the code.

Might need to uninstall or delete the folder you created first.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bstriner/keras-tqdm/issues/19#issuecomment-335042366 , or mute the thread https://github.com/notifications/unsubscribe-auth/AASVbHl1CU8nGrto0xPv33tHZvP53Ztjks5sqUgsgaJpZM4Pw52L . https://github.com/notifications/beacon/AASVbBAVj6BAVQyK8MzvWU0bSYqeRSPZks5sqUgsgaJpZM4Pw52L.gif

bstriner commented 6 years ago

I don't see an attachment...

pluviosilla commented 6 years ago

Keras TQDM.zip

The server must have deleted the attachments, probably because it didn't like the file types (html and ipynb). I think I had better luck just now uploading a ZIP file. The zip archive I uploaded contains a jupyter notebook and an HTML version of the notebook that includes the error spew I get when trying to include the TQDM callback in the fit() method's parameter list.

bstriner commented 6 years ago

You're on an old version which matched keras 1. Current version works on keras 1 and 2.

C:\Anaconda3\envs\aind-dog\lib\site-packages\keras_tqdm-1.0.7-py3.5.egg\keras_tqdm\tqdm_callback.py

Version on pypi is 2.0.1 uploaded on 2017-04-08. Not sure how u ended up with such an old version.

https://pypi.python.org/pypi/keras-tqdm/2.0.1

As I mentioned, you can use the current pypi version or the github version, which might be slightly newer.

pluviosilla commented 6 years ago

Could it be because I am installing the developer version? I want keras-tqdm in one of my Anaconda environments. So I clone your tree in the corresponding folder (Windows 10), navigate to keras-tqdm, per your instructions, and run:

python setup.py develop

I cannot run this line of setup code without specifying develop, because without develop in the command line, I get an error: error: no commands supplied

The installation appears to work. Last line of the spew reads:

Finished processing dependencies for keras-tqdm=2.0.1

So I appear to have the correct version. Have you tried installing your tool in a conda environment?

pluviosilla commented 6 years ago

O.k. I resolved the installation problem. Turns out you can install pip within the conda environment then when you activate the environment, you can run pip and it will install keras tqdm to that particular conda environment. I didn't know you could do that with pip. So none of my hamfisted kludges were necessary.

Unfortunately, my jupyter notebook still hangs after the progress bar spews out some garbage characters. I so wanted to believe that keras tqdm would fix this annoying problem for me. I'm sure this tool works for some people, and I applaud you for creating it. Thank you! I mention my problem just by way of sharing information I assume you would like to have.

Sorry that I can't give you error or stack trace information, because, as you know, the jupyter notebook hangs when the progress bar timeout problem occurs. If you know of a way to generate a log or a dump or otherwise extract info in spite of the program hanging, please tell me how and I will send you the log.

bstriner commented 6 years ago

Are you running the Notebook TQDM or the Console TQDM? Console running in Jupyter might do that.

Send a screenshot or the notebook if you're still having something weird.

pluviosilla commented 6 years ago

Notebook. I'm attaching a ZIP archive containing a screenshot of what I see when the notebook hangs as well as jupyter notebook's console output:

TQDM Errors.zip

knageswara78 commented 5 years ago

In Anaconda, steps to install the package.

  1. Navigate to ‘Environments” and Search for your package.
  2. That package will be displayed and click on Apply.

Now the package is installed and it can be used right away.

Please share your feedback.