import VideoClassification.Config.Config as Config from VideoClassification.model.C3D.C3D import C3D from VideoClassification.utils.Others.Logger import Logger from VideoClassification.utils.DataSetLoader.UCF101_DataSetLoader_FromFileName.UCF101Loader import test_UCF101_C3D, \ train_UCF101_C3D from VideoClassification.utils.Others.toolkits import accuracy, try_to_load_state_dict from VideoClassification.utils.DataSetLoader.UCF101_DataSetLoader_FromFileName.PictureQueue import PictureQueue, \ GenVariables_C3D ''' C3D ''' ############ Config logger = Logger(Config.LOGSpace + Config.EX_ID) savepath = Config.ExWorkSpace + Config.EX_ID + '/' import os.path if os.path.isdir(savepath) == False: os.mkdir(savepath) batchsize = 22 ############ def C3D_Net_Run(): epochs = 81 loops = 2001
import math from VideoClassification.utils.Others.Logger import Logger log = Logger("/tmp/runs/r3") for step in range(100): v1 = math.sin(step) v2 = math.cos(step) v3 = 2000 * step log.scalar_summary('model2/v1', v1, step) log.scalar_summary('model2/v2', v2, step) log.scalar_summary('model2/v3', v3, step)