joonspk-research / generative_agents

Generative Agents: Interactive Simulacra of Human Behavior
Apache License 2.0
16.22k stars 2.08k forks source link

Simulator showing a static image without animation #52

Open tyson-ni opened 1 year ago

tyson-ni commented 1 year ago

When I run the simulation and go to http://localhost:8000/simulator_home, the page just displays the static image below. The command run 20 seems to run without obvious error but no characters and animation show up.

download

RuoyuG commented 1 year ago

so do i. do you know how to fix it?

edom18 commented 1 year ago

I have the same issue. I also checked whole city map using arrow keys but I wasn't able to see any animations. I also found out the list of characters didn't show information up.

sayaphoenix commented 1 year ago

同样的问题,而且不能保存

www-Ye commented 1 year ago

same issue, how to solve it

EvoNexusX commented 1 year ago

同样 的问题,prompt上面有输出,但是画面没有显示

HaochenZhao commented 1 year ago

Same issue. I thought reloading it in browser might update the image, but it just shows "Please start the backend first." instead of any images.

HaochenZhao commented 1 year ago

If you are developers from China mainland (like me), this problem may come from openai api failure. When excuting step 3 in README.md, frontend server keeps printing ""POST /update_environment/ HTTP/1.1" 200 14" and nothing new appears in backend server. At least it works this way on my machine. To solve it, I add these code in reverie/backend_server/utils.py: PROXY = 'socks5h://127.0.0.1:7890' os.environ['HTTP_PROXY'] = os.environ['http_proxy'] = PROXY os.environ['HTTPS_PROXY'] = os.environ['https_proxy'] = PROXY os.environ['NO_PROXY'] = os.environ['no_proxy'] = '127.0.0.1,localhost,.local', then it seems to be ok now.

edom18 commented 1 year ago

I solved the issue by creating movement folder. You can refer how to solve this to https://github.com/joonspk-research/generative_agents/pull/55

The problem is reverie.py didn't check and create target directory.

ferencdv commented 1 year ago

Thanks, but where exactly should I put a "movement" folder in the directory structure? Should I put anything else in the folder or just make a folder. Apologies if this was covered somewhere else but I could not find it.

ferencdv commented 1 year ago

Thanks. I think it is discussed here: https://github.com/joonspk-research/generative_agents/issues/44#issuecomment-1676376850

edom18 commented 1 year ago

Yes, you're right. You can fix that by adding codes to reveire.py to check or create the folder before accessing files under the folder. Please refer to #55.

EthenZhang commented 1 year ago

same issue , and i have tried to create movement folder following https://github.com/joonspk-research/generative_agents/pull/55 , it doesn't work .

Flanua commented 1 year ago

Same I added the code: 5555 And still same issue: 3333

222


111

44444


I'm using GPT4ALL Generative Agents (Using local LLM)

renzhangzhe commented 1 year ago

same issue, how to solve it

Flanua commented 1 year ago

P.S: I also tried to create movement folder manually in case that's the problem (because that code that I inserted still doesn't creating that folder for some reason) and the new movement chunks (like 0,1,2,3,4,etc) in .json format in that folder are still not created automatically for my simulation and the simulation base: base_the_ville_isabella_maria_klaus so we can't see our agents and time moving we can only see it moving by playing saved by default replays because those replays like: July1_the_ville_isabella_maria_klaus-step-3-1 and etc have movement folder and those movement chunks in json format inside movement folder present.

thulanxc commented 12 months ago

they are sleeping in the first 2000 steps or more, be patient. After 6 am, IR will start to move.

PiotrZak commented 12 months ago

agents processing information while sleeping or having REM phase?

Flanua commented 12 months ago

they are sleeping in the first 2000 steps or more, be patient. After 6 am, IR will start to move.

As you can see from my image it says that agent is working at the counter thought. But the agent didn't move at all since I started the simulation. P.S: I also waited 30 min for agents to move but nothing happened.

Flanua commented 12 months ago

agents processing information while sleeping or having REM phase?

They plan their scheduler and do everything they supposed to do but we can't see it actually happening we can only see their actions in the console window though.

thulanxc commented 12 months ago

agents processing information while sleeping or having REM phase?

They plan their scheduler and do everything they supposed to do but we can't see it actually happening we can only see their actions in the console window though.

Just wait for them. In the first step they will plan for a long time. When they are planning, they do not move. After they finish planning(it costs a long time), they will start to sleep, and in your cmd window you will see lines run fast. Then when it comes to the 2000th step or more, 6 am in the simulated town, IR will start to move. So just wait.

thulanxc commented 12 months ago

agents processing information while sleeping or having REM phase?

They plan their scheduler and do everything they supposed to do but we can't see it actually happening we can only see their actions in the console window though.

You can run a demo first to see what will happen if everything is ok

thulanxc commented 12 months ago

agents processing information while sleeping or having REM phase?

I believe they do nothing while sleeping.

Flanua commented 11 months ago

Just wait for them. In the first step they will plan for a long time. When they are planning, they do not move. After they finish planning(it costs a long time), they will start to sleep, and in your cmd window you will see lines run fast. Then when it comes to the 2000th step or more, 6 am in the simulated town, IR will start to move. So just wait.

They don't move at all I waited a whole hour till the simulation ended! Do you understand. Here is the proof that agents do planned actions but they don't gets reflected visually except the console window: 3333333333333

Flanua commented 11 months ago

You can run a demo first to see what will happen if everything is ok

What demo? You mean replays? Default replays are working great because agents movement information being saved properly to the movement folder during the simulation. We are not talking about replay here we are talking about simulation not working as it should with local LLMs though. It may work with GPT4 but many countries have no access to it and it pointless to make it online service only and it should support local LLMs in the first place.

sardanian commented 10 months ago

I am having the same issue where the browser is not updating the gamestate to show anyone do any movements. It seems to be working as it is showing actions by the agents, but the map and characters and current time are not updating in any way.

sardanian commented 10 months ago

I am able to run the replays fine. But the simluation is not running when I am trying to see it live via: http://localhost:8000/simulator_home I have to wait till the simulation finishes to be able to see replays. I'd like to be able to see the simulation as it is running.

myrainbowandsky commented 10 months ago

have you resolved?

I am able to run the replays fine. But the simluation is not running when I am trying to see it live via: http://localhost:8000/simulator_home I have to wait till the simulation finishes to be able to see replays. I'd like to be able to see the simulation as it is running.

myrainbowandsky commented 10 months ago

When I run the simulation and go to http://localhost:8000/simulator_home, the page just displays the static image below. The command run 20 seems to run without obvious error but no characters and animation show up.

download

have you resolved?

juliuswang2024 commented 8 months ago

同样的问题依旧存在,画面不动

zqgong commented 6 months ago
“environment\frontend_server\templates\home\main_script.html“  change like this, which will show the whole image.

   // Phaser 3.0 global settings. 
// Configuration meant to be passed to the main Phaser game instance. 
// const config = {
//   type: Phaser.AUTO,
//   width: 1500,
//   height: 800,
//   parent: "game-container",
//   pixelArt: true,
//   physics: {
//     default: "arcade",
//     arcade: {
//       gravity: { y: 0 } } },
//   scene: {
//     preload: preload,
//     create: create,
//     update: update } };

const config = {
  type: Phaser.AUTO,
  width: 4480,
  height: 3200,
  parent: "game-container",
  pixelArt: true,
  physics: {
    default: "arcade",
    arcade: {
      gravity: { y: 0 } } },
  scene: {
    preload: preload,
    create: create,
    update: update },
  scale: {zoom: 0.5} };