tensorflow / tensorflow/models

Model trained with gpu is not as good as trained by cpu.

Open
#10,526 2 comments 0 reactions 3 assignees View on GitHub

Nobody has claimed this yet.

models:research models:research:odapi type:bug
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [Yes ] I am using the latest TensorFlow Model Garden release and TensorFlow 2.
  • I am reporting the issue to the correct repository. (Model Garden official or research directory)
  • I checked to make sure that this issue has not been filed already.

1. The entire URL of the file you are using

https://github.com/tensorflow/models/tree/master/official/...

2. Describe the bug

I want train a new model with ssd_mobilenet_v2_fpnlite_640x640_coco17_tpu-8.

Model trained by CPU is better than GPU.

For the same picture, model trained by cpu can detect the object, but model from gpu can not.

gpu:
Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.186

cpu:
Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.286

3. Steps to reproduce

Steps to reproduce the behavior.

4. Expected behavior

Model trained by GPU should be the same as trained by CPU.

6. System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu20.04
  • TensorFlow installed from (source or binary): binary
  • TensorFlow version (use command below): 2.8
  • Python version: 3.8
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version: 8.1
  • GPU model and memory: 16G

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.