train.py 992 Bytes
Newer Older
1
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Hye Yoon's avatar
Hye Yoon committed
2
3
4
5
6
7
8
9
10
11
12
13
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
14

Hye Yoon's avatar
Hye Yoon committed
15
16
"""YT8M model training driver."""

17
18
from absl import app

Hye Yoon's avatar
Hye Yoon committed
19
20
from official.common import flags as tfm_flags
# pylint: disable=unused-import
Yeqing Li's avatar
Yeqing Li committed
21
22
from official.projects.yt8m.configs import yt8m
from official.projects.yt8m.tasks import yt8m_task
23
# pylint: enable=unused-import
Yeqing Li's avatar
Yeqing Li committed
24
from official.vision.beta import train
Hye Yoon's avatar
Hye Yoon committed
25

26

Hye Yoon's avatar
Hye Yoon committed
27
28
if __name__ == '__main__':
  tfm_flags.define_flags()
A. Unique TensorFlower's avatar
A. Unique TensorFlower committed
29
  app.run(train.main)