TF_FeatureExtraction icon indicating copy to clipboard operation
TF_FeatureExtraction copied to clipboard

Error when running the example_feat_extract.py

Open berryweinst opened this issue 7 years ago • 3 comments

Hi, Maybe I'm missing something but after following the 3 steps + cloning the 'TF_FeatureExtraction' git itself. I run: python example_feat_extract.py --network resnet_v1_50 --checkpoint ../resnet_v1_50.ckpt --image_path ../../studies/ECoG/video_data/frames/ --out_file ../features.h5 --num_classes 1000 --layer_names resnet_v1_50/logits

and getting this error: Traceback (most recent call last): File "example_feat_extract.py", line 24, in from feature_extractor.feature_extractor import FeatureExtractor File "/Users/berryweinstein/tensorflow/TF_FeatureExtraction/feature_extractor/feature_extractor.py", line 20, in from nets import nets_factory ModuleNotFoundError: No module named 'nets'

Can you please advise?

berryweinst avatar Jan 20 '18 10:01 berryweinst

I have the same problem, have anyone found a solution?

Soldelli avatar Aug 28 '18 11:08 Soldelli

Are you sure about cloning tensorflow/models and setting $PYTHONPATH variable turely?

hamjam avatar Sep 07 '18 10:09 hamjam

You should fix the path export PYTHONPATH="<checkout_dir>/research/slim:$PYTHONPATH"

HetSP07 avatar Sep 18 '18 13:09 HetSP07