Comments (4)
Having the exact same issue & haven't been able to solve it yet, would be nice if someone could chime in to tell us noobs what we're doing wrong, or if it's just broken lol
from multi-subject-render.
ouch I'm not using A1111 anymore and right now I'm not sure what went wrong. I'm sorry that you guys can't use it. I will take a look into it during the upcoming month if possible!
from multi-subject-render.
It does function with the Midas model, although I can not get a suitable image out of it, but the script appears to be broken with the other models.
from multi-subject-render.
Changing the lines of code at :
automatic1111\repositories\midas\midas\backbones\beit.py", line 102, in block_forward -
FROM
x = x + self.drop_path(self.attn(self.norm1(x), resolution, shared_rel_pos_bias=shared_rel_pos_bias))
x = x + self.drop_path(self.mlp(self.norm2(x)))
else:
x = x + self.drop_path(self.gamma_1 * self.attn(self.norm1(x), resolution,
shared_rel_pos_bias=shared_rel_pos_bias))
x = x + self.drop_path(self.gamma_2 * self.mlp(self.norm2(x)))
TO:
x = x + self.drop_path1(self.attn(self.norm1(x), resolution, shared_rel_pos_bias=shared_rel_pos_bias))
x = x + self.drop_path2(self.mlp(self.norm2(x)))
else:
x = x + self.drop_path1(self.gamma_1 * self.attn(self.norm1(x), resolution,
shared_rel_pos_bias=shared_rel_pos_bias))
x = x + self.drop_path2(self.gamma_2 * self.mlp(self.norm2(x)))
(manually adding path#s is really all.)
Seems to brute force a fix
however, it seems the brute forcing of it this way causes a memory leak as it will go from successful runs, to OOM exceptions immediately before it even renders 1 pre-image.
I honestly don't know a lot of python, just know how to follow traces and stacks while guessing syntax along the way, so no idea if the changes made are just bad, or if this is close to a solution or not.
another thought:
This is in the beit.py file, the model for midas beit, that is 512 (the big one.) perhaps changing to a different model (swin2) will resolve? thats on my todo at least if I cannot resolve beit.
from multi-subject-render.
Related Issues (20)
- Repositories Error HOT 2
- I can't find it in webui page HOT 2
- [Feature Request] Different models for foreground and background
- [Feature request] Foreground X shift and zoom
- Error loading script: depthmap.py HOT 2
- firstphase_width' HOT 3
- Flipping characters
- UnboundLocalError: local variable 'model' referenced before assignment, on all models but midas_v21_small HOT 8
- List index out of range HOT 1
- Memory Leak HOT 1
- no module 'timm.models.beit' HOT 1
- ModuleNotFoundError: No module named 'repositories.midas' HOT 1
- Test
- How to achieve best result? HOT 1
- Error verifying pickled file HOT 1
- [Feature Request] An Img2Img version to reuse images
- Any way to pass the multi-subject-render settings through automatic1111 API?
- Appears to be broken now: ModuleNotFoundError: No module named 'timm.models.beit' HOT 2
- 恐竜
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 multi-subject-render.