Forum

Author Topic: NetworkTask() python scripting error  (Read 1841 times)

jmdowd

  • Newbie
  • *
  • Posts: 5
    • View Profile
NetworkTask() python scripting error
« on: February 16, 2018, 12:28:17 AM »
I using PhotoScan Pro v. 1.4.0 and I am trying to run a script that does processing over a network however, when it runs I get the following errors in the network monitor window:

         MatchPhotos: NULL CHUNK
         AlignCameras: NULL CHUNK
         BuildDepthMaps: NULL FRAME
         BuildDenseCloud: NULL FRAME

I have created a chunk for the document in the script so I am wondering why it's telling me both the chunk and the frame are NULL.

Thanks,

Justin

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: NetworkTask() python scripting error
« Reply #1 on: February 16, 2018, 01:04:21 AM »
Hello Justin,

Can you post the code that you are using to send one of these tasks to network processing?
Best regards,
Alexey Pasumansky,
Agisoft LLC

jmdowd

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: NetworkTask() python scripting error
« Reply #2 on: February 19, 2018, 10:25:10 PM »
task1 = PhotoScan.NetworkTask()
for c in doc.chunks:
        task1.frames.append((c.key,0))
        task1.chunks.append(c.key)
task1.name = "MatchPhotos"
task1.params['downscale'] = int(PhotoScan.HighAccuracy)
task1.params['network_distribute'] = True


client.connect(addr_str)
batch_id1 = int (client.createBatch(filePath, [task1]))
client.resumeBatch(batch_id1)

jmdowd

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: NetworkTask() python scripting error
« Reply #3 on: February 19, 2018, 10:30:08 PM »
The previous post was one of the tasks, attached here is the entire code for further viewing