Comments (6)
Oh, I made it work by just copying the entire contents of the json file and replaced "x.tolist()" with that. I guess this was what you meant? Well it works and I'm happy. Thank you very much. (The body for posting is pretty long tho haha but it works great!)
Haha yes, this is the correct way to do it!
Yeah, the body is quite long but since it enables you to use textual inversion on the fly so I think it's worth it! 😆
from carefree-creator.
I tried using --focus sd.anime
as described in the docs (wiki) here
However it gave this error:
Error: Invalid value for '--focus': 'sd.anime' is not one of 'all', 'cv', 'sd', 'sd.base', 'sd.inpainting', 'sync', 'control', 'pipeline'.
from carefree-creator.
By the way, I also want to be able to upscale the anime pictures I generate (using the API), how can I do this? When upscaling at the nolibox website, there's an option for normal upscaling and anime upscaling, where I want to use anime upscaling using the API. Thank you! (And sorry for spamming your inbox!!)
from carefree-creator.
Haha never mind and let me answer your questions one by one.
- In fact, what you've done is correct: simply add
"is_anime": true
will do the work. The reason why creations from the website is better is, we use the <easynegative> as thenegative_prompt
as default there. You can inspect this behavior by selecting the generated image and then expanding theAI Parameters
tab at the bottom right corner, as shown below:
In order to re-create the same behavior, here's an example:
{
"text": "anime girl, high quality",
"negative_prompt": "<easynegative>",
"seed": 1001,
"guidance_scale": 7.5,
"sampler": "k_euler",
"is_anime": true,
"custom_embeddings": {
"<easynegative>": x.tolist()
}
}
Here, x
is the textual inversion embedding vector of the <easynegative>
. For your convenience, you can directly use the 2-dimensional list contained in this JSON file:
If everything works fine, the image generated by the API with these parameters should be exactly the same as the selected image shown above!
-
Oops, seems that the wiki is outdated, ignore it and focus on what I've said above!
-
The upscaling endpoint is available in the
--focus sync
mode, and unfortunately, the Colab RAM cannot afford to load models from bothsync
mode andsd.base
mode. 😣
You may do the trick if you can launch two Colab notebooks at the same time, one for the
sync
mode and the other for thesd.base
mode. Then, you can use the/img2img/sr
endpoint from thesync
mode to upscale the images generated by the/txt2img/sd
endpoint from thesd.base
mode.
from carefree-creator.
Hey! I haven't tried yet, but I'm not quite sure what I should do with the easynegative.json file? Should I download it and put it in the Colab in any way? Rename it to x or how does it know what x is? I'm sorry if this is a dumb question, and thank you very much :)
from carefree-creator.
Oh, I made it work by just copying the entire contents of the json file and replaced "x.tolist()" with that. I guess this was what you meant? Well it works and I'm happy. Thank you very much. (The body for posting is pretty long tho haha but it works great!)
from carefree-creator.
Related Issues (20)
- Unable to use local model HOT 1
- Audit Algorithm too strict HOT 1
- On which port does the local server start? HOT 23
- Error when trying to run CPU mode HOT 9
- NSFW Allowed? HOT 8
- Is something updated? HOT 7
- When are the video features coming HOT 2
- carefree-creator version 0.2.1 fastapi openapi.json error HOT 1
- created a discord for community HOT 3
- 请问是否有支持controlnet计划 HOT 1
- Cannot install carefree-learn because these package versions have conflicting dependencies. HOT 3
- ImportError: /opt/conda/lib/python3.8/site-packages/transformer_engine_extensions.cpython-38-x86_64-linux-gnu.so: undefined symbol HOT 10
- Hey i just want to know what all different models exactly are being used here. Thanks!! HOT 3
- cannot import name 'TPair' from 'cflearn.api.cv.diffusion' HOT 8
- google colab 本地服务都用不了咯 HOT 5
- local deployment & Colab deployment 得到{"detail":"Not Found"} HOT 2
- cftool 1.0.7 requires requests==2.10.0, but you have requests 2.31.0 which is incompatible. HOT 2
- ImportError: cannot import name 'ExpandType' from 'cftool.geometry' (/opt/conda/lib/python3.10/site-packages/cftool/geometry.py) HOT 1
- Using API to generate images HOT 8
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 carefree-creator.