kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
Merge pull request #147 from matt-159/headless-resume-failed-batch-patch
Can now use "Resume failed batch" feature when rendering headlesslypull/152/head
commit
d7e15455cd
|
@ -727,6 +727,12 @@ There are also additional optional arguments that you can use:
|
||||||
Use batch data from a separate folder rather than the folder Blend My NFTs uses by default.
|
Use batch data from a separate folder rather than the folder Blend My NFTs uses by default.
|
||||||
|
|
||||||
`--batch-data`
|
`--batch-data`
|
||||||
|
|
||||||
|
- Try to resume a failed batch
|
||||||
|
|
||||||
|
Resume a failed batch from where it stopped
|
||||||
|
|
||||||
|
`--resume-failed-batch`
|
||||||
|
|
||||||
You can also view this information from your terminal/command line by running:
|
You can also view this information from your terminal/command line by running:
|
||||||
|
|
||||||
|
|
|
@ -352,6 +352,14 @@ def run_as_headless():
|
||||||
if args.batch_data_path:
|
if args.batch_data_path:
|
||||||
input.batch_json_save_path = args.batch_data_path
|
input.batch_json_save_path = args.batch_data_path
|
||||||
|
|
||||||
|
if args.resume_failed_batch:
|
||||||
|
_fail_state, _failed_batch, _failed_dna, _failed_dna_index = helpers.check_failed_batches(input.batch_json_save_path)
|
||||||
|
|
||||||
|
input.fail_state = _fail_state
|
||||||
|
input.failed_batch = _failed_batch
|
||||||
|
input.failed_dna= _failed_dna
|
||||||
|
input.failed_dna_index = _failed_dna_index
|
||||||
|
|
||||||
if args.operation == 'create-dna':
|
if args.operation == 'create-dna':
|
||||||
intermediate.send_to_record(input)
|
intermediate.send_to_record(input)
|
||||||
|
|
||||||
|
|
|
@ -65,4 +65,10 @@ def get_python_args():
|
||||||
help="Overwrite the logic file path in the config file"
|
help="Overwrite the logic file path in the config file"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
parser.add_argument("--resume-failed-batch",
|
||||||
|
dest="resume_failed_batch",
|
||||||
|
action="store_true",
|
||||||
|
required=False,
|
||||||
|
help="Resume failed batch"
|
||||||
|
)
|
||||||
return parser.parse_args(argv), parser
|
return parser.parse_args(argv), parser
|
||||||
|
|
Ładowanie…
Reference in New Issue