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

Trying to run step 2 of V7.0 Results in following error #47

Open
IdsQme opened this issue Aug 9, 2024 · 0 comments
Open

Trying to run step 2 of V7.0 Results in following error #47

IdsQme opened this issue Aug 9, 2024 · 0 comments

Comments

@IdsQme
Copy link

IdsQme commented Aug 9, 2024

ValueError Traceback (most recent call last)
Cell In[4], line 12
1 from act_train_rhythm import *;
3 train_params_p2 = {
4 "divisor" : 4,
5 "train_epochs" : 16,
(...)
10 "data_split_count" : 80
11 };
---> 12 model_p2 = step2_build_model()

File ~\Downloads\osumapper-master\v7.0\act_train_rhythm.py:234, in step2_build_model()
233 def step2_build_model():
--> 234 model_v7 = build_model();
235 return model_v7

File ~\Downloads\osumapper-master\v7.0\act_train_rhythm.py:192, in build_model()
190 plt.figure()
191 plt.xlabel('Epoch')
--> 192 plt.ylabel('Mean Abs Error [Limitless]')
193 plt.plot(history.epoch, np.array(history.history['mean_absolute_error']),
194 label='Train MAE')
195 plt.plot(history.epoch, np.array(history.history['val_mean_absolute_error']),
196 label = 'Val MAE')

File ~\anaconda3\Lib\site-packages\keras\src\ops\operation.py:266, in Operation.output(self)
256 @Property
257 def output(self):
258 """Retrieves the output tensor(s) of a layer.
259
260 Only returns the tensor(s) corresponding to the first time
(...)
264 Output tensor or list of output tensors.
265 """
--> 266 return self._get_node_attribute_at_index(0, "output_tensors", "output")

File ~\anaconda3\Lib\site-packages\keras\src\ops\operation.py:285, in Operation._get_node_attribute_at_index(self, node_index, attr, attr_name)
269 """Private utility to retrieves an attribute (e.g. inputs) from a node.
270
271 This is used to implement the properties:
(...)
282 The operation's attribute attr at the node of index node_index.
283 """
284 if not self._inbound_nodes:
--> 285 raise ValueError(
286 f"The layer {self.name} has never been called "
287 f"and thus has no defined {attr_name}."
288 )
289 if not len(self._inbound_nodes) > node_index:
290 raise ValueError(
291 f"Asked to get {attr_name} at node "
292 f"{node_index}, but the operation has only "
293 f"{len(self._inbound_nodes)} inbound nodes."
294 )

ValueError: The layer sequential_2 has never been called and thus has no defined output.

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

1 participant