-
Notifications
You must be signed in to change notification settings - Fork 38
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
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject #9
Comments
Hey, I would suggest to either downgrade Python or try to play around with |
After I had solved the problem, ran the example -----> cifar10.py, and get following error: Downloading data from https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz
|
You should be using cifar10 settings file. Currently you are running cifar10 example with |
I changed to version 3.6 of python, but it doesn't work again.ValueError Traceback (most recent call last) ~\Desktop\DeepSwarm-master\deepswarm\deepswarm.py in find_topology(self) ~\Desktop\DeepSwarm-master\deepswarm\aco.py in search(self) ~\Desktop\DeepSwarm-master\deepswarm\aco.py in generate_ants(self) ~\Desktop\DeepSwarm-master\deepswarm\aco.py in evaluate(self, backend, storage) ~\Desktop\DeepSwarm-master\deepswarm\backends.py in generate_model(self, path) ~\AppData\Local\Programs\Python\Python38\Scripts\tf2-gpu\lib\site-packages\tensorflow\python\training\tracking\base.py in _method_wrapper(self, *args, **kwargs) ~\AppData\Local\Programs\Python\Python38\Scripts\tf2-gpu\lib\site-packages\tensorflow\python\keras\engine\functional.py in init(self, inputs, outputs, name, trainable, **kwargs) ~\AppData\Local\Programs\Python\Python38\Scripts\tf2-gpu\lib\site-packages\tensorflow\python\training\tracking\base.py in _method_wrapper(self, *args, **kwargs) ~\AppData\Local\Programs\Python\Python38\Scripts\tf2-gpu\lib\site-packages\tensorflow\python\keras\engine\functional.py in _init_graph_network(self, inputs, outputs) ~\AppData\Local\Programs\Python\Python38\Scripts\tf2-gpu\lib\site-packages\tensorflow\python\keras\engine\functional.py in _map_graph_network(inputs, outputs) ValueError: The name "1617975030.9342244" is used 2 times in the model. All layer names should be unique. |
What configuration you are using and are you running test example? |
Yes, I am running the test example - cifar10 My configuration: Thank you so much for your help! |
Hmm it's weird it seems that few layers were created at the exact same time. Did you change anything in parameters = {'name': str(time.time())} to parameters = {'name': str(uuid.uuid4())} |
No, I didn't change anything. And I try your suggestion that change: parameters = {'name': str(time.time())} to parameters = {'name': str(uuid.uuid4())} but it didn't work. ValueError: The name "1618915107.6525285" is used 2 times in the model. All layer names should be unique. ------------------------------STARTING ACO SEARCH-------------------------------
|
I'm not sure if this is the reason. I run the program in jupyter notebook. Cause it is easy to debug for me. |
How did you install |
I install DeepSwarm in Command prompt. |
Sorry I was busy with other life stuff, does the problem still occur? |
When I try to run the program I get following error:
ValueError Traceback (most recent call last)
in
2 import tensorflow as tf
3
----> 4 from deepswarm.backends import Dataset, TFKerasBackend
5 from deepswarm.deepswarm import DeepSwarm
6
~\AppData\Local\Programs\Python\Python38\Scripts\DeepSwarm-master\deepswarm\backends.py in
7
8 from abc import ABC, abstractmethod
----> 9 from sklearn.model_selection import train_test_split
10 from tensorflow.keras import backend as K
11
c:\users\user\appdata\local\programs\python\python38\lib\site-packages\sklearn_init_.py in
62 else:
63 from . import __check_build
---> 64 from .base import clone
65 from .utils._show_versions import show_versions
66
c:\users\user\appdata\local\programs\python\python38\lib\site-packages\sklearn\base.py in
12 from scipy import sparse
13 from .externals import six
---> 14 from .utils.fixes import signature
15 from .utils import _IS_32BIT
16 from . import version
c:\users\user\appdata\local\programs\python\python38\lib\site-packages\sklearn\utils_init_.py in
10 from scipy.sparse import issparse
11
---> 12 from .murmurhash import murmurhash3_32
13 from .class_weight import compute_class_weight, compute_sample_weight
14 from . import _joblib
init.pxd in init sklearn.utils.murmurhash()
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
I use:
python 3.8
numpy 1.20.1
I would appreciate your help.
The text was updated successfully, but these errors were encountered: