コード例 #1
0
import glob
import os.path
import subprocess
import sys
import socket
import time
hostname = socket.gethostname()
sys.path.append('../python')
from reporter_utils.task_reporter import task_reporter
sheet_key = "1VfsG81FVxwgDYPW2UkTkKLB6YQC18rQwB4LQKNe9p5o"
creds_json = '../python/reporter_utils/client_secret.json'
reporter = task_reporter(sheet_key, creds_json, 1)
allseq = reporter.get_allseqname()

maxLen = len(allseq)


def get_task():
    reporter.reconnect()
    seqname = None
    hdPose_adam1_status = reporter.pull_status('hdPose3d_Adam_stage1')
    uv_thumbnail_status = reporter.pull_status('UV_thumbnail')
    for seq, hdadam1, uv_status in zip(allseq, hdPose_adam1_status,
                                       uv_thumbnail_status):
        if hdadam1 == 'FIN posefs3b' and not uv_status:
            seqname = seq
            break
    return seqname


for task_id in range(maxLen):
コード例 #2
0
import sys
import glob
import os
import time
import numpy as np
import copy
import socket
import subprocess
import cPickle as pickle
sys.path.append('/home/xiul/workspace/PanopticDome/python')

from reporter_utils.task_reporter import task_reporter
sheet_key = "1VfsG81FVxwgDYPW2UkTkKLB6YQC18rQwB4LQKNe9p5o"
creds_json = '../python/reporter_utils/client_secret.json'
reporter = task_reporter(sheet_key, creds_json, 2)  #* 1 Domedata 2. Haggling

allseq = reporter.get_allseqname()

maxLen = len(allseq)


def get_task():
    reporter.reconnect()
    seqname = None
    hdPose_adam1_status = reporter.pull_status('Adam_model')
    hdPose_ass = reporter.pull_status('Adam_assemble')

    for seq, hdadam1, hd_ass in zip(allseq, hdPose_adam1_status, hdPose_ass):
        if not hd_ass and hdadam1 == 'FIN posefs3b':
            seqname = seq
            break