{
  "id": 270864,
  "title": "model.fit_generator",
  "url": "/competitions/landmark-recognition-2021/discussion/270864",
  "author_name": "michael scheinfeild",
  "post_date": "2021-09-07T10:43:00.111000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>hi i use gpu in train in command<br>\nhistory = model.fit_generator(generator=train_generator,<br>\n                              validation_data=val_generator,<br>\n                              epochs = epochs, workers=4)<br>\nafter it completed :<br>\n1047/1047 [==============================] - 572s 535ms/step - loss: 9.4938 - sparse_categorical_accuracy: 0.0334 - val_loss: 8.2524 - val_sparse_categorical_accuracy: 0.0505</p>\n<p>it is stuck fro long time i try to reduce train data to :<br>\nNumber train samples: 67000<br>\nNumber val samples: 33000<br>\nNumber test samples: 10345</p>\n<p>but even completed it keep going to circle around this cell and not coninue to next cell i try to replace to tpu or restart cell only after several times it can continue to next cell any suggestions for this yo run fast ? </p>",
  "messages": [
    {
      "id": 1505537,
      "postDate": "2021-09-07T10:43:00.110Z",
      "content": "<p>hi i use gpu in train in command<br>\nhistory = model.fit_generator(generator=train_generator,<br>\n                              validation_data=val_generator,<br>\n                              epochs = epochs, workers=4)<br>\nafter it completed :<br>\n1047/1047 [==============================] - 572s 535ms/step - loss: 9.4938 - sparse_categorical_accuracy: 0.0334 - val_loss: 8.2524 - val_sparse_categorical_accuracy: 0.0505</p>\n<p>it is stuck fro long time i try to reduce train data to :<br>\nNumber train samples: 67000<br>\nNumber val samples: 33000<br>\nNumber test samples: 10345</p>\n<p>but even completed it keep going to circle around this cell and not coninue to next cell i try to replace to tpu or restart cell only after several times it can continue to next cell any suggestions for this yo run fast ? </p>",
      "rawMarkdown": "hi i use gpu in train in command\nhistory = model.fit_generator(generator=train_generator,\n                              validation_data=val_generator,\n                              epochs = epochs, workers=4)\nafter it completed :\n1047/1047 [==============================] - 572s 535ms/step - loss: 9.4938 - sparse_categorical_accuracy: 0.0334 - val_loss: 8.2524 - val_sparse_categorical_accuracy: 0.0505\n\nit is stuck fro long time i try to reduce train data to :\nNumber train samples: 67000\nNumber val samples: 33000\nNumber test samples: 10345\n\nbut even completed it keep going to circle around this cell and not coninue to next cell i try to replace to tpu or restart cell only after several times it can continue to next cell any suggestions for this yo run fast ? "
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "1505537": "hi i use gpu in train in command\nhistory = model.fit_generator(generator=train_generator,\n                              validation_data=val_generator,\n                              epochs = epochs, workers=4)\nafter it completed :\n1047/1047 [==============================] - 572s 535ms/step - loss: 9.4938 - sparse_categorical_accuracy: 0.0334 - val_loss: 8.2524 - val_sparse_categorical_accuracy: 0.0505\n\nit is stuck fro long time i try to reduce train data to :\nNumber train samples: 67000\nNumber val samples: 33000\nNumber test samples: 10345\n\nbut even completed it keep going to circle around this cell and not coninue to next cell i try to replace to tpu or restart cell only after several times it can continue to next cell any suggestions for this yo run fast ? "
  }
}