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

Apple M1 #18

Open
g-autof opened this issue Nov 20, 2022 · 2 comments
Open

Apple M1 #18

g-autof opened this issue Nov 20, 2022 · 2 comments

Comments

@g-autof
Copy link

g-autof commented Nov 20, 2022

How to fix? :(

Metal device set to: Apple M1

systemMemory: 16.00 GB
maxCacheSize: 5.33 GB

2022-11-20 01:54:17.446949: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:305] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.

2022-11-20 01:54:17.447045: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:271] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 0 MB memory) -> physical PluggableDevice (device: 0, name: METAL, pci bus id: )

Traceback (most recent call last):

File ~/SIUN/code/deblur.py", line 50, in
Tester(config).start()
File ~/SIUN/code/src/tester.py", line 13, in init
self.model = DDModel(config)
File ~/SIUN/code/src/model/model.py", line 15, in init
self.generator = self.build_generator((None,None,6),(None,None,3))
File ~/SIUN/code/src/model/model.py", line 88, in build_generator
if(self.load(self.config.resource.generator_json_path,self.config.resource.generator_weights_path)):
File ~/SIUN/code/src/model/model.py", line 120, in load
self.model = model_from_json(loaded_model_json,custom_objects={'tf':tf})
File ~/miniconda3/lib/python3.9/site-packages/keras/saving/model_config.py", line 104, in model_from_json
return deserialize(config, custom_objects=custom_objects)
File ~/miniconda3/lib/python3.9/site-packages/keras/layers/serialization.py", line 207, in deserialize
return generic_utils.deserialize_keras_object(
File ~/miniconda3/lib/python3.9/site-packages/keras/utils/generic_utils.py", line 679, in deserialize_keras_object
deserialized_obj = cls.from_config(
File ~/miniconda3/lib/python3.9/site-packages/keras/engine/training.py", line 2641, in from_config
functional.reconstruct_from_config(config, custom_objects))
File ~/miniconda3/lib/python3.9/site-packages/keras/engine/functional.py", line 1326, in reconstruct_from_config
process_layer(layer_data)
File ~/miniconda3/lib/python3.9/site-packages/keras/engine/functional.py", line 1308, in process_layer
layer = deserialize_layer(layer_data, custom_objects=custom_objects)
File ~/miniconda3/lib/python3.9/site-packages/keras/layers/serialization.py", line 207, in deserialize
return generic_utils.deserialize_keras_object(
File ~/miniconda3/lib/python3.9/site-packages/keras/utils/generic_utils.py", line 679, in deserialize_keras_object
deserialized_obj = cls.from_config(
File ~/miniconda3/lib/python3.9/site-packages/keras/layers/core/lambda_layer.py", line 303, in from_config
function = cls._parse_function_from_config(config, custom_objects,
File ~/miniconda3/lib/python3.9/site-packages/keras/layers/core/lambda_layer.py", line 358, in _parse_function_from_config
function = generic_utils.func_load(config[func_attr_name], globs=globs)
File ~/miniconda3/lib/python3.9/site-packages/keras/utils/generic_utils.py", line 793, in func_load
code = marshal.loads(raw_code)

ValueError: bad marshal data (unknown type code)

@abhijeet-dhumal
Copy link

abhijeet-dhumal commented Feb 28, 2023

same issue came up again !
Solved ?

@g-autof
Copy link
Author

g-autof commented Mar 2, 2023

same issue came up again ! Solved ?

No, I "put the bolt" on this matter.....

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