TF_FeatureExtraction icon indicating copy to clipboard operation
TF_FeatureExtraction copied to clipboard

The Error When I debug the file of " example_feat_extract.py"

Open yingning opened this issue 8 years ago • 2 comments

Hello , firstly, thanks for your shared code! The following are Error when I debug the file of "example_feat_extract.py" :

File "/home/jsj/TF_FeatureExtraction/example_feat_extract.py", line 25, in import feature_extractor.utils as utils File "/home/jsj/TF_FeatureExtraction/feature_extractor/utils.py", line 23, in from datasets import imagenet ImportError: No module named datasets

Do I need to creat a file of dataset and then download the imagenet data? Any suggestion will be appreciated!@tomrunia

yingning avatar Sep 27 '17 04:09 yingning

Hi, no you just need to make sure it can find the datasets package included in the tensorflow/datasets repository. It seems like they recently changed the file structure of that repository, but you can find those files here: https://github.com/tensorflow/models/tree/master/research/slim. Just add that path to your PYTHONPATH and you should be fine :)

tomrunia avatar Sep 27 '17 11:09 tomrunia

Thanks you for your response ! Your suggestion works well! @tomrunia

yingning avatar Sep 29 '17 02:09 yingning