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

Got an error when training on CPU #41

Closed
volunteers opened this issue Aug 18, 2019 · 2 comments
Closed

Got an error when training on CPU #41

volunteers opened this issue Aug 18, 2019 · 2 comments

Comments

@volunteers
Copy link

I use this for training:
./train-local --config-file $(pwd)/models/MobileNet/config_mobilenet_technical.json --samples-file $(pwd)/data/TID2013/tid_labels_train.json --image-dir ~/Downloads/image-quality-assessment-master/training_data/distorted_images/

Got error message like:

Using TensorFlow backend.
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/src/trainer/train.py", line 6, in
from sklearn.model_selection import train_test_split
ModuleNotFoundError: No module named 'sklearn'

I am pretty sure sklearn installed and I can even run
>> from sklearn.model_selection import train_test_split in python directly.
I tried both on MacOS and Ubuntu, got the same error.

@skiry
Copy link

skiry commented Aug 19, 2019

Try to put scikit-learn in the requirements.txt file from the src directory before building the docker.

@volunteers
Copy link
Author

put scikit-learn in the requirements.txt solved the problem.

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