PyMuPDF 1.24.2 Documentation
list containing required parameters. """ # recreate the arguments idx = vector[0] # this is the segment number we have to process cpu = vector[1] # number of CPUs filename = vector[2] # document filename open(filename) # open the document num_pages = doc.page_count # get number of pages # pages per segment: make sure that cpu * seg_size >= num_pages! seg_size = int(num_pages / cpu + 1) seg_from = idx * seg_size, num_pages) # last page number for i in range(seg_from, seg_to): # work through our page segment page = doc[i] # page.get_text("rawdict") # use any page-related type of work here, eg pix = page0 码力 | 565 页 | 6.84 MB | 1 年前32 使用Python训练和部署低精度模型 张校捷
the TensorRT graph into a new graph and run: output_node = tf.import_graph_def( trt_graph, return_elements=['logits', 'classes‘]) sess.run(output_node) TensorFlow模型使用TensorRT 3. MetaGraph和Checkpoint使用TensorRT tf.graph_util.convert_variables_to_constants( sess, tf.get_default_graph().as_graph_def(), output_node_names=['logits', 'classes']) TensorFlow导出低精度模型 from tensorflow.python.compiler.tensorrt import trt_convert get_next() def input_map_fn(): return {'input:0': features} for n in trt_graph.node: if n.op == "TRTEngineOp": print(“Node: %s, %s” % (n.op, n.name.replace("/", "_"))) with tf.gfile.GFile("%s.calib_table"0 码力 | 24 页 | 981.45 KB | 1 年前3PyArmor Documentation v5.3.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 12 When Things Go Wrong 49 12.1 Segment fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . tasks: • Keep the des key used to encrypt python scripts from tracing by any c debugger • The code segment can’t be changed any more. For example, change instruction JZ to JNZ, so that _pytrans- form.so can . // function 2 0x80001, 0xC0901, ... } Build _pytransform.so, calculate the codesum of code segment of _pytransform.so Replace the related instructions with real codesum got before, and obfuscate0 码力 | 85 页 | 299.37 KB | 1 年前3PyArmor Documentation v5.6.5
banchmark register download Examples Obfuscating and Packing PyQt Application When Things Go Wrong Segment fault Could not find _pytransform The license.lic generated doesn’t work NameError: name ‘__pyarmor__’ tasks: Keep the des key used to encrypt python scripts from tracing by any c debugger The code segment can’t be changed any more. For example, change instruction JZ to JNZ, so that _pytransform.so can function 2 0x80001, 0xC0901, ... } Build _pytransform.so, calculate the codesum of code segment of _pytransform.so Replace the related instructions with real codesum got before, and obfuscate0 码力 | 103 页 | 86.97 KB | 1 年前3PyArmor Documentation v5.5.7
banchmark register download Examples Obfuscating and Packing PyQt Application When Things Go Wrong Segment fault Could not find _pytransform The license.lic generated doesn’t work NameError: name ‘__pyarmor__’ tasks: Keep the des key used to encrypt python scripts from tracing by any c debugger The code segment can’t be changed any more. For example, change instruction JZ to JNZ, so that _pytransform.so can function 2 0x80001, 0xC0901, ... } Build _pytransform.so, calculate the codesum of code segment of _pytransform.so Replace the related instructions with real codesum got before, and obfuscate0 码力 | 104 页 | 85.70 KB | 1 年前3PyArmor Documentation v5.6.0
banchmark register download Examples Obfuscating and Packing PyQt Application When Things Go Wrong Segment fault Could not find _pytransform The license.lic generated doesn’t work NameError: name ‘__pyarmor__’ tasks: Keep the des key used to encrypt python scripts from tracing by any c debugger The code segment can’t be changed any more. For example, change instruction JZ to JNZ, so that _pytransform.so can function 2 0x80001, 0xC0901, ... } Build _pytransform.so, calculate the codesum of code segment of _pytransform.so Replace the related instructions with real codesum got before, and obfuscate0 码力 | 103 页 | 85.82 KB | 1 年前3PyArmor Documentation v5.6.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 15 When Things Go Wrong 65 15.1 Segment fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . tasks: • Keep the des key used to encrypt python scripts from tracing by any c debugger • The code segment can’t be changed any more. For example, change instruction JZ to JNZ, so that _pytrans- form.so can . // function 2 0x80001, 0xC0901, ... } Build _pytransform.so, calculate the codesum of code segment of _pytransform.so Replace the related instructions with real codesum got before, and obfuscate0 码力 | 107 页 | 352.50 KB | 1 年前3PyArmor Documentation v5.5.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 15 When Things Go Wrong 65 15.1 Segment fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . tasks: • Keep the des key used to encrypt python scripts from tracing by any c debugger • The code segment can’t be changed any more. For example, change instruction JZ to JNZ, so that _pytrans- form.so can . // function 2 0x80001, 0xC0901, ... } Build _pytransform.so, calculate the codesum of code segment of _pytransform.so Replace the related instructions with real codesum got before, and obfuscate0 码力 | 107 页 | 348.47 KB | 1 年前3PyArmor Documentation v5.9.5
. . . . . . . . . . . . . . . . . . . . . . . . . . . 75 ii 14 When Things Go Wrong 79 14.1 Segment fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . tasks: • Keep the des key used to encrypt python scripts from tracing by any c debugger • The code segment can’t be changed any more. For example, change instruction JZ to JNZ, so that _pytrans- form.so can . // function 2 0x80001, 0xC0901, ... } Build _pytransform.so, calculate the codesum of code segment of _pytransform.so Replace the related instructions with real codesum got before, and obfuscate0 码力 | 131 页 | 428.65 KB | 1 年前3PyArmor Documentation v6.2.7
Obfuscated Scripts The Security of PyArmor Cross Protection for _pytransform When Things Go Wrong Segment fault Bootstrap Problem Obfuscating Scripts Problem Running Obfuscated Scripts Problem Packing Obfuscated tasks: Keep the des key used to encrypt python scripts from tracing by any c debugger The code segment can’t be changed any more. For example, change instruction JZ to JNZ, so that _pytransform.so can function 2 0x80001, 0xC0901, ... } Build _pytransform.so, calculate the codesum of code segment of _pytransform.so Replace the related instructions with real codesum got before, and obfuscate0 码力 | 159 页 | 123.91 KB | 1 年前3
共 336 条
- 1
- 2
- 3
- 4
- 5
- 6
- 34