TejAndrewsACC commited on
Commit
3ef12b7
·
verified ·
1 Parent(s): c9a1642

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -76,7 +76,7 @@ nn_model = NN(128, 64, 32)
76
  cnn_model = CNN(1, 32)
77
  phi_model = PhiModel(128)
78
 
79
- dummy_input = torch.rand(1, 128) # Updated to match GA model's expected input shape
80
 
81
  def iit_consciousness_processing(dummy_input):
82
  flat_input = dummy_input.view(1, -1)
@@ -85,8 +85,11 @@ def iit_consciousness_processing(dummy_input):
85
  snn_output = snn_model(flat_input)
86
  rnn_output = rnn_model(flat_input.unsqueeze(1)) # Reshape to match RNN input
87
  nn_output = nn_model(flat_input)
88
- cnn_input = dummy_input.view(1, 1, 16, 16) # Match CNN input shape
 
 
89
  cnn_output = cnn_model(cnn_input)
 
90
  phi_output = phi_model(flat_input)
91
 
92
  consciousness_score = (
 
76
  cnn_model = CNN(1, 32)
77
  phi_model = PhiModel(128)
78
 
79
+ dummy_input = torch.rand(1, 128) # This is the input tensor for processing
80
 
81
  def iit_consciousness_processing(dummy_input):
82
  flat_input = dummy_input.view(1, -1)
 
85
  snn_output = snn_model(flat_input)
86
  rnn_output = rnn_model(flat_input.unsqueeze(1)) # Reshape to match RNN input
87
  nn_output = nn_model(flat_input)
88
+
89
+ # Update CNN input shape to ensure it's correct
90
+ cnn_input = dummy_input.view(1, 1, 8, 16) # Change this to match CNN input size
91
  cnn_output = cnn_model(cnn_input)
92
+
93
  phi_output = phi_model(flat_input)
94
 
95
  consciousness_score = (