# Runtime error on photomaker v2

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%3E%5C
**Category:** Beginners\
**Created:** [May 1, 2025, 7:46am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093 "2025-05-01T07:46:16Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohdmistry](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mohdmistry](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmohdmistry)%5C
**Post date:** [May 1, 2025, 7:46am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F1 "2025-05-01T07:46:16Z")

</div>

It’s been about a month since the space I use (photomaker v2) isn’t working. It’s giving an error called runtime error.  
What’s the fix to this and when it can be fixed??

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [May 1, 2025, 8:17am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F2 "2025-05-01T08:17:36Z")

</div>

> **[@John6666 on Hugging Face: "If your Space stops working after restarting...](https://huggingface.co/posts/John6666/369491746519704)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

Currently, due to hardware updates, PyTorch 2.0.0 is no longer supported and therefore no longer works. As an example, you can make it work by rewriting `requirements.txt` as follows.

> **[PhotoMaker V2 - a Hugging Face Space by John6666](https://huggingface.co/spaces/John6666/PhotoMaker-V2)**
>
> Discover amazing ML apps made by the community

```auto
diffusers==0.29.0
torch==2.4.0
torchvision>=0.15.1
transformers<=4.49.0
accelerate
safetensors
einops
onnxruntime-gpu
spaces
omegaconf
peft
huggingface-hub==0.25.2
insightface==0.7.3
numpy<2
pydantic==2.10.6

```

---

<div class="post-metadata">

**Author:** ![mohdmistry](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mohdmistry](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmohdmistry)%5C
**Post date:** [May 2, 2025, 9:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F3 "2025-05-02T21:07:51Z")

</div>

Hi there. Thanks for the response… However I’m a beginner and I don’t know how to rewrite this… Is there any tutorial on how to do this?  
And how would I do this on the site itself when I’m just a user and not the website designer?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [May 2, 2025, 9:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F4 "2025-05-02T21:26:46Z")

</div>

I see. For now, I’ve requested that the original space be corrected.

> **[TencentARC/PhotoMaker-V2 · Upload requirements.txt](https://huggingface.co/spaces/TencentARC/PhotoMaker-V2/discussions/20)**
>
> Fixes related to discontinuing support for PyTorch 2.0 due to changes in the Zero GPU space specification.

---

<div class="post-metadata">

**Author:** ![mohdmistry](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mohdmistry](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmohdmistry)%5C
**Post date:** [May 3, 2025, 8:12am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F5 "2025-05-03T08:12:01Z")

</div>

Thanks… Let’s see when the updated requirements gets into affect

---

<div class="post-metadata">

**Author:** ![mohdmistry](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mohdmistry](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmohdmistry)%5C
**Post date:** [May 6, 2025, 5:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F6 "2025-05-06T17:36:57Z")

</div>

It’s still not working… Is there any way around it? Like can someone make a copy of it and publish it with the updated requirements?  
Or is there a contact page where we can ask them directly to update it?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [May 6, 2025, 10:40pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F7 "2025-05-06T22:40:24Z")

</div>

> Like can someone make a copy of it and publish it with the updated requirements?

Well, anyone with a Pro/Enterprise subscription can do it, but I don’t have enough slots, so it’s impossible for me…

> a contact page

The Discussion section is roughly equivalent to that. However, it is not very responsive…

> **[TencentARC/PhotoMaker-V2 · Discussions](https://huggingface.co/TencentARC/PhotoMaker-V2/discussions)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![mohdmistry](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mohdmistry](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmohdmistry)%5C
**Post date:** [May 8, 2025, 10:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F8 "2025-05-08T22:17:15Z")

</div>

The page has changed… Now as soon as you enter it shows a configuration error

---

<div class="post-metadata">

**Author:** ![mohdmistry](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mohdmistry](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmohdmistry)%5C
**Post date:** [June 25, 2025, 10:41am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F9 "2025-06-25T10:41:53Z")

</div>

How much does the pro cost and if I get the pro can I do it myself or is it too complicated?  
Or can you do it now or you still don’t have any slots as you said before

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [June 25, 2025, 11:03am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F10 "2025-06-25T11:03:51Z")

</div>

> How much does the pro cost

$9 / month. 10 ZeroGPU spaces at once.

> **[Hugging Face – Pricing](https://huggingface.co/pricing)**
>
> The simplest way to access compute for AI

> if I get the pro can I do it myself or is it too complicated?

If you want to create a Space from scratch, it can be a bit complicated, but if you want to duplicate or modify an existing Space, it’s not too complicated. As long as there are no specification changes or unique cloud services being used, you can simply click “Duplicate this space” to duplicate it and use it for your own purposes. You can also modify it and make it public or private as you like.

> **[zero-gpu-explorers (ZeroGPU Explorers)](https://huggingface.co/zero-gpu-explorers)**
>
> Org profile for ZeroGPU Explorers on Hugging Face, the AI community building the future.

> you still don’t have any slots as you said before

It’s not increasing, so there’s same or less than before…🥶  
Creating multiple accounts maybe possible but a hassle.

---

<div class="post-metadata">

**Author:** ![mohdmistry](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mohdmistry](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmohdmistry)%5C
**Post date:** [June 25, 2025, 4:58pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F11 "2025-06-25T16:58:57Z")

</div>

Hey bro… Seems like there is some sort of a problem they’ve hidden your response.  
You can email me the response I think that’d be better since they would remove whatever you’ll write again. Here’s my email

mohdmistry Hotmail com

---

<div class="post-metadata">

**Author:** ![mohdmistry](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mohdmistry](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmohdmistry)%5C
**Post date:** [July 6, 2025, 1:37pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-on-photomaker-v2%2F153093%2F12 "2025-07-06T13:37:37Z")

</div>

Finally the replys have gotten allowed after it was flagged… Anyhow so once I get the pro package I can just go and edit the requirements. Txt file then it will work right??  
What Im planning here is to get the sub temporarily so that I can make photomaker v2 work… Then I’d just cancel it  
So I’d just put the code you’ve given me before  
Would that work?
