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

Error occured when change backbone #1

Open
shadyatscu opened this issue Apr 25, 2019 · 2 comments
Open

Error occured when change backbone #1

shadyatscu opened this issue Apr 25, 2019 · 2 comments

Comments

@shadyatscu
Copy link

Hi, thank you for the great work! when i changed the backbone such as 'resnet50' or 'dense net' the same error occured:
Traceback (most recent call last):
File "/home/peter/python_project/project_image_clustering/main.py", line 21, in
m.imagecluster()
File "/home/peter/python_project/project_image_clustering/model.py", line 174, in imagecluster
self.kmeans()
File "/home/peter/python_project/project_image_clustering/model.py", line 136, in kmeans
x.append([float(t) for t in i.strip('[').strip(']').split(' ')])
File "/home/peter/python_project/project_image_clustering/model.py", line 136, in
x.append([float(t) for t in i.strip('[').strip(']').split(' ')])
ValueError: could not convert string to float: '...'

how could i fix it, is the other backbone available? when i use the vgg16 vgg19 the code works well

@shadyatscu
Copy link
Author

bug has been fixed by changing x.append([float(t) for t in i.strip('[').strip(']').split(' ')]) to
x.append([float(t) for t in i.strip('[').strip(']').split(' ')] if t)
thanks a lot!

@lucky1177214
Copy link

@shadyatscu
hi, the following problems occur f.to_csv('output/base_model_{}_feature_maps.csv'.format(self.base_model_name))
no such file
I cloned it without this file
I ask for your help ,thanks

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