Comments (3)
def resize(im, w, h):
if upscaler_name is None or upscaler_name == "None" or im.mode == 'L':
return im.resize((w, h), resample=LANCZOS)
scale = max(w / im.width, h / im.height)
if scale > 1.0:
upscalers = [x for x in shared.sd_upscalers if x.name == upscaler_name]
if len(upscalers) == 0:
upscaler = shared.sd_upscalers[0]
print(f"could not find upscaler named {upscaler_name or '<empty string>'}, using {upscaler.name} as a fallback")
else:
upscaler = upscalers[0]
im = upscaler.scaler.upscale(im, scale, upscaler.data_path)
if im.width != w or im.height != h:
im = im.resize((w, h), resample=LANCZOS)
return im
sus
from temporalkit.
it's not the resizing function
from temporalkit.
Found the issue, my nearest common multiple function was finding the nearest multiple of either, not both numbers.
from temporalkit.
Related Issues (20)
- Empty keys folders HOT 3
- No keyframes get generated HOT 2
- My TemporalKit isn't showed in my sd, don't know why HOT 2
- UI页面加载不出来插件 HOT 1
- Ebsynth-process时候报错 AttributeError HOT 1
- Data Directories Unclear w/A1111
- # missing path issue
- install this,cannot open the stable diffusion
- 建议 HOT 1
- 生成的视频卡帧 HOT 1
- json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 1
- ModuleNotFoundError: No module named 'tqdm.auto' HOT 3
- Incorrect import with new latest (Feb 2024) sd.next version. HOT 1
- After first few frame or so is wierd garbage
- Automatic1111 cannot load Temporal Kit HOT 1
- TemporalKit get error HOT 3
- Please fix "prepare ebsynth" button in "EBsynth-Process" tab. HOT 4
- TemporalKit don´t load after AUTOMATIC1111 stable-diffusion-webui update 1.9.0 HOT 6
- update SD1.9,bug. ImportError: cannot import name 'create_sampler_and_steps_selection' from 'modules.ui' (M:\SD\sdwebui\modules\ui.py) HOT 7
- Can we use the kit through SD api?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from temporalkit.