Comments (7)
Hello ! I just tried the notebook, I think I see what @jarredou is referring to: the loading of the pipeline and downloading of the weights.
For my part, I solved it by:
Commenting:
#photomaker_path = 'release_model/photomaker-v1.bin'
Then changing:
from huggingface_hub import hf_hub_download
photomaker_ckpt = hf_hub_download(repo_id="TencentARC/PhotoMaker", filename="photomaker-v1.bin", repo_type="model")
pipe = PhotoMakerStableDiffusionXLPipeline.from_pretrained(
base_model_path,
torch_dtype=torch.bfloat16,
use_safetensors=True,
variant="fp16",
).to(device)
pipe.load_photomaker_adapter(
os.path.dirname(photomaker_ckpt),
subfolder="",
weight_name=os.path.basename(photomaker_ckpt),
trigger_word="img"
)
pipe.id_encoder.to(device)
After what, I encountered later the following issue when running on Colab with a V100:
RuntimeError: cutlassF: no kernel found to launch!
This has been "solved" by switching to an A100 GPU (BTW, the GPU RAM consumption is high: 25.9 / 40.0 GB, maybe too high for a Colab V100)
from photomaker.
RuntimeError: cutlassF: no kernel found to launch!This has been "solved" by switching to an A100 GPU (BTW, the GPU RAM consumption is high: 25.9 / 40.0 GB, maybe too high for a Colab V100)
On a T4 the "no kernel" error is fixed by switching to float16 instead of bfloat16.
Yes with a batch size of 1 (sometimes 2) you can get this working on the free tier.
from photomaker.
pipe = PhotoMakerStableDiffusionXLPipeline.from_pretrained(
base_model_path,
torch_dtype=torch.float16, <------ change torch.bfloat16 to torch.float16
use_safetensors=True,
variant="fp16",
).to(device)
from photomaker.
Thank you. I have merged it.
from photomaker.
Please give us more details. Thank you.
from photomaker.
@Paper99 I just proposed the fix in the pull request #39 😃
from photomaker.
RuntimeError: cutlassF: no kernel found to launch!This has been "solved" by switching to an A100 GPU (BTW, the GPU RAM consumption is high: 25.9 / 40.0 GB, maybe too high for a Colab V100)
On a T4 the "no kernel" error is fixed by switching to float16 instead of bfloat16. Yes with a batch size of 1 (sometimes 2) you can get this working on the free tier.
Hi. I am receiving this error on google colab. Can you please help, how can I fix it? How do we change from bfloat16 to float16.
from photomaker.
Related Issues (20)
- An error occurred while running the app.py file HOT 2
- 普通人照片放上去不太像 HOT 4
- `class_word` in prompt
- Is there any plan to release the training code?
- 试了一下,感觉自己对比照片变丑了好多 HOT 1
- 输入一张图片中包含多个人脸时,如何处理?
- Progress stuck 0.0%
- PhotoMaker Style difference
- Any way to change the output path of the demo and not have all images disappear? HOT 1
- Support for ControlNet? HOT 1
- Gradio app.py examples
- Can the class word automatically detect during inference stage?
- Weighted prompt on photomaker
- What’s the weight license?
- httpx.RemoteProtocolError: Server disconnected without sending a response
- Can photomaker be used with SD XL Lightning?
- Why is it running slowly on an L4 GPU?
- Where to initialize self.id_image_processor?
- About the batch inference
- 怎么运行这个项目
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 photomaker.