deforum / deforum/sd-webui-deforum

[Feature Request]:

Open
#907 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
2.9k
Forks
407
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

Test for the existence of a Parseq URL and save the JSON of the URL as `20231015004152_parseq.json`

### Proposed workflow

There is nothing to show, just adding code to the deform extension.

### Additional information

I currently do this with the following code at the end of `run_deforum.py`

```
import json
import urllib.request
try:
parseq_manifest_url = locals()['parseq_args'].parseq_manifest
if not parseq_manifest_url:
print("Skipping Parseq (not in use)")
else:
with urllib.request.urlopen(parseq_manifest_url) as response:
parseq_data = response.read()
parseq_json_str = json.dumps(json.loads(parseq_data.decode('utf8').replace("'", '"')), indent=4, sort_keys=True)
parseq_outfile = f"{args.outdir}/{root.timestring}_parseq.json"
with open(parseq_outfile, "w") as outfile:
outfile.write(parseq_json_str)
print(f"Saved Parseq json data to: {parseq_outfile}")
except Exception as e:
print("Oops! Something went wrong trying to save the Parseq file, but continuing anyway...")
print(f"An exception of type {type(e).__name__} occurred. Arguments: {e.args}")

```

### Are you going to help adding it?

discord ID: 1064991849149898822

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.