yw3576 / stop-and-go

3 stars 0 forks source link

Errors #1

Open TrinhTuanHung2021 opened 1 year ago

TrinhTuanHung2021 commented 1 year ago

Thank you for sharing. But I run your Sumo models in Fig1,7 and 11 it often had errors

In Fig 7


NameError Traceback (most recent call last) /tmp/ipykernel_37849/2083711192.py in 185 186 state = new_state --> 187 episode_reward += reward 188 189

NameError: name 'episode_reward' is not defined

yw3576 commented 1 year ago

Hi,

You can comment this line.

Best, Yue

在 2022年9月24日,08:15,TrinhTuanHung2021 @.***> 写道:

 In Fig 7

NameError Traceback (most recent call last) /tmp/ipykernel_37849/2083711192.py in 185 186 state = new_state --> 187 episode_reward += reward 188 189

NameError: name 'episode_reward' is not defined

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

TrinhTuanHung2021 commented 1 year ago

I run Fig 11 Errrors


NameError Traceback (most recent call last) /tmp/ipykernel_45226/66482220.py in 255 #state_01=state 256 action_01 = loaded_model_01.actor(state_01) --> 257 action=actor1.forward(state_01) 258 action = action.detach().numpy()[0] 259 state_total_01=np.vstack((state_total_01,state))

NameError: name 'actor1' is not defined

TrinhTuanHung2021 commented 1 year ago

I look forward to hear you soon!. I only run models in Fig 1 Thank you very much

may be we need to set

episode_reward = 0
and reward=0 

in Fig7. But I do not know to debug it

yw3576 commented 1 year ago

I have corrected some typos. Please check again.

Best, Yue

On 24 Sep 2022, at 8:54 AM, TrinhTuanHung2021 @.***> wrote:

I run Fig 11 Errrors

NameError Traceback (most recent call last) /tmp/ipykernel_45226/66482220.py in 255 #state_01=state 256 action_01 = loaded_model_01.actor(state_01) --> 257 action=actor1.forward(state_01) 258 action = action.detach().numpy()[0] 259 state_total_01=np.vstack((state_total_01,state))

NameError: name 'actor1' is not defined

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/yw3576/stop-and-go/issues/1*issuecomment-1256859612__;Iw!!BhJSzQqDqA!V32hHch6WoOeJVdry9vrQLM8Ug3obNCqtnHoBZOW1tTlF7iMvXMmcKRlWnD972L3ZPJjZiOAPq6uwaGoxuOENGjtLtQ$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ALHOPYQQHCGNFFFXBEHEFB3V72CRJANCNFSM6AAAAAAQUPDLR4__;!!BhJSzQqDqA!V32hHch6WoOeJVdry9vrQLM8Ug3obNCqtnHoBZOW1tTlF7iMvXMmcKRlWnD972L3ZPJjZiOAPq6uwaGoxuOEaljEU5w$. You are receiving this because you commented.

TrinhTuanHung2021 commented 1 year ago

I have corrected some typos. Please check again. Best, Yue On 24 Sep 2022, at 8:54 AM, TrinhTuanHung2021 @.**> wrote: I run Fig 11 Errrors NameError Traceback (most recent call last) /tmp/ipykernel_45226/66482220.py in 255 #state_01=state 256 action_01 = loaded_model_01.actor(state_01) --> 257 action=actor1.forward(state_01) 258 action = action.detach().numpy()[0] 259 state_total_01=np.vstack((state_total_01,state)) NameError: name 'actor1' is not defined — Reply to this email directly, view it on GitHub <[https://urldefense.com/v3/__https://github.com/yw3576/stop-and-go/issues/1issuecomment-1256859612;Iw!!BhJSzQqDqA!V32hHch6WoOeJVdry9vrQLM8Ug3obNCqtnHoBZOW1tTlF7iMvXMmcKRlWnD972L3ZPJjZiOAPq6uwaGoxuOENGjtLtQ$](https://urldefense.com/v3/https://github.com/yw3576/stop-and-go/issues/1*issuecomment-1256859612__;Iw!!BhJSzQqDqA!V32hHch6WoOeJVdry9vrQLM8Ug3obNCqtnHoBZOW1tTlF7iMvXMmcKRlWnD972L3ZPJjZiOAPq6uwaGoxuOENGjtLtQ%24)>, or unsubscribe <https://urldefense.com/v3/https://github.com/notifications/unsubscribe-auth/ALHOPYQQHCGNFFFXBEHEFB3V72CRJANCNFSM6AAAAAAQUPDLR4;!!BhJSzQqDqA!V32hHch6WoOeJVdry9vrQLM8Ug3obNCqtnHoBZOW1tTlF7iMvXMmcKRlWnD972L3ZPJjZiOAPq6uwaGoxuOEaljEU5w$>. You are receiving this because you commented.

Thank you very much. I can run your models in Fig 11. But you did not debug models in Fig 7