Skip to content
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

Task3 - Documentation for re-run models previously created #3

Open
Goretx opened this issue May 26, 2020 · 3 comments
Open

Task3 - Documentation for re-run models previously created #3

Goretx opened this issue May 26, 2020 · 3 comments

Comments

@Goretx
Copy link

Goretx commented May 26, 2020

Hello, it would be very great for beginners like me to have in the documentation some instruction to re-run a model that has been saved on Drive, either on colab or locally.

Thanks a lot in advance!

@Goretx
Copy link
Author

Goretx commented Jul 16, 2020

I've worked (slowly) on this from Colab and this is what I did:

Clone repo from Github
!git clone https://github.com/mar-muel/artificial-self-AMLD-2020.git

Go to the folder of the 3rd project
%cd /content/artificial-self-AMLD-2020/3

Install requirements
!pip install -r requirements.txt

Mount Google Drive
from google.colab import drive drive.mount('/content/drive')

Create a directory where the models need to be stored
!mkdir runs

copy the model from Drive to /runs
!cp -avr /content/drive/My\ Drive/YOUR-FOLDER/run4 /content/artificial-self-AMLD-2020/3/runs

interact with the model
!python interact.py --run_name run4

Problem is that when I run the interact.py the cell never asks me input. Or, to be more precise: it waits for the input but there's no way for me to do it. Same problem running everything locally over Jupyer Notebook. Is there a problem with the input()?

In other words, it waits for the input without displaying the input box, so there's no wait to write:
Schermata 2020-07-16 alle 13 44 46

how it should be:
Schermata 2020-07-16 alle 13 41 39

Is there a problem with the script or the problem is colab/jupyter? Or am I doing something terribly wrong?

@mar-muel
Copy link
Owner

Hey - Not sure, but just to make sure: can you deactivate any kind of anti-virus/ad block of your browser?

Cheers

@Goretx
Copy link
Author

Goretx commented Jul 16, 2020

Thanks for the quick reply. I deactivated my ad-block but it gives me the same result. Note that if I run a new cell with a input(), the input box appears normally (like in the second image). It doesn't do that only with the input inside the script.
I'm very confused. I thought that the problem was colab but the same thing happens even when I work locally on jupyter lab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants