Deep-Live-Cam
Deep-Live-Cam copied to clipboard
NSFW option doesn't appear on the application
edit the ui.py file in the modules directory: Find these -
nsfw_value = ctk.BooleanVar(value=modules.globals.nsfw)
nsfw_switch = ctk.CTkSwitch(root, text='NSFW', variable=nsfw_value, cursor='hand2', command=lambda: setattr(modules.globals, 'nsfw', nsfw_value.get()))
nsfw_switch.place(relx=0.6, rely=0.7)
Uncomment all three.
This should add the NSFW button back to the UI. It worked for me Mac mini 2020 M1.
I've running now - will see how it goes - it didn't crash and die like it did before I reenabled the button, and turned it on.
Good Luck.
edit the ui.py file in the modules directory: Find these -
nsfw_value = ctk.BooleanVar(value=modules.globals.nsfw)
nsfw_switch = ctk.CTkSwitch(root, text='NSFW', variable=nsfw_value, cursor='hand2', command=lambda: setattr(modules.globals, 'nsfw', nsfw_value.get()))
nsfw_switch.place(relx=0.6, rely=0.7)
Uncomment all three.
This should add the NSFW button back to the UI. It worked for me Mac mini 2020 M1.
I've running now - will see how it goes - it didn't crash and die like it did before I reenabled the button, and turned it on.
Good Luck.
Alright it worked, thanks for helping me out
This function is working not very well in the main branch. I will merge the fixed-PR in the experimental branch to the main branch soon.
PR @ https://github.com/hacksider/Deep-Live-Cam/pull/237
edit the ui.py file in the modules directory: Find these -
nsfw_value = ctk.BooleanVar(value=modules.globals.nsfw)
nsfw_switch = ctk.CTkSwitch(root, text='NSFW', variable=nsfw_value, cursor='hand2', command=lambda: setattr(modules.globals, 'nsfw', nsfw_value.get()))
nsfw_switch.place(relx=0.6, rely=0.7)
Uncomment all three.
This should add the NSFW button back to the UI. It worked for me Mac mini 2020 M1.
I've running now - will see how it goes - it didn't crash and die like it did before I reenabled the button, and turned it on.
Good Luck.
whenever i uncomment the three lines it automatically crashes when i try to run the program but if i comment those three lines again it works, is there any fix?
I mean i followed the exact instructions, followed mutahars video too and Everything works well but when uncommenting through either notepad or pycharm it just breaks until i comment them again. I got no clue what im doing, im not a coder or anything just wanna mess around haha
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows
From: denrinm @.> Sent: Friday, August 16, 2024 6:17:00 PM To: hacksider/Deep-Live-Cam @.> Cc: spangurs @.>; Mention @.> Subject: Re: [hacksider/Deep-Live-Cam] NSFW option doesn't appear on the application (Issue #355)
@spangurshttps://github.com/spangurs, it works for me.
I recommend using Python 3.10 or 3.11 and setting up a virtual environment. Once you have the environment ready, install all the dependencies listed in the requirements.txt file as described in the repository. After that, you should be able to uncomment those three lines without encountering any issues.
— Reply to this email directly, view it on GitHubhttps://github.com/hacksider/Deep-Live-Cam/issues/355#issuecomment-2293789199, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKR6V7TND3R3WUY7CVJYYF3ZRYQXZAVCNFSM6AAAAABMTGOGKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTG44DSMJZHE. You are receiving this because you were mentioned.Message ID: @.***>
@spangurs , could you please send your ui.py file? I'd be happy to take a look and see what changes you've made.
You also mentioned that the program crashes and doesn't run at all. If that's the case, it's probably that something might have been altered in the ui.py file. Please send it over so I can help you troubleshoot the issue.
@denrinm, Yeah sure I mean it works when i have the hashes in there and im pretty sure thats when its commented but once I remove them it opens the terminal then spews some words for a split seconds and close. Also I have no clue how to attach it because when i try to attach the file it says that they dont support the file type
@spangurs , upload it somewhere and give me the link .
@denrinm, I think this should work. https://file.io/LLAd903TN6WE
@spangurs , have you deleted it ? I can no longer download it ?
@denrinm, https://file.io/FMrW3gMQvmUV try now. swear these file sharers suck so bad
@spangurs spangurs, I tested it and found a minor typo that was causing the issue. It should work now. Please confirm: https://file.io/VGJOFvmIYls7
@denrinm
there we go, thank you man. Not sure what you did but still thanks haha
@spangurs , it turns out there was an indentation issue, which is common if you haven't done much coding. When you mentioned that the software crashes without producing any logs, I suspected this might be the cause. Anyway, it's fixed now—enjoy!
@denrinm it got deleted again, can u reupload? thanks
@APD-01 Hi, I uncommented all three lines as you told, but now when I run "python run.py --execution-provider cuda" I get the following error:
Could you assist please? Thank you in advance.
@ ilyaphilin I've not played with the CUDA version, I'm using an M1 Mac... but from the error message above looks like you've created an indentation error. When you remove the "#" to uncomment the line, you need to replace it with a space - not just delete it. E.g.
needs to become:
Not:
<code Here>
It's just the way python works. The number of spaces (rather the level of indentation), matters.
Good luck.
@Achraf80000 The NSFW function has been re-enabled. You can pull the latest codes and check it out.
Feel free to re-open this issue if you’re still having trouble.
Feel free to re-open this issue if you’re still having trouble.
It seems this PR was not propper merged into main imho.
If you look for example in the "ui.py" those lines are still uncommented:
https://github.com/hacksider/Deep-Live-Cam/blob/446487a70c60e66f8c088ee718cfa128d9d6505a/modules/ui.py#L93
Sorry, the NSFW function is currently unavailable. We have temporarily disabled it due to a violation of GitHub’s terms of service.