Comments (3)
There are multiple ways to achieve this and I will list a few that came to my mind.
Local (persistent)
You could directly run PULSE on a local instance. If you do that you don't even need to download the files manually as it will download them on your first run. If the cache gets cleared just do what the next method wants you to do but on your local instance of PULSE.
Online (temporary)
You could download the files and host them wherever you want and manually change the links after the colab downloaded PULSE at synthesis.pt (mapping.pt and shape_predictor_68_face_landmarks.dat are required too depending on what you are doing).
Instead of changing the links and hosting the files you could just upload the files into a directory of the colab and point PULSE to the correct location.
Online (persistent)
Fork PULSE and change the links like in the method I mentioned beforehand.
Then copy the colab to your drive and change !git clone to point to your fork (don't forget to save).
Local (persistent)
You could mix the first and second option by downloading the colab and running it using Jupyter.
The files for manual download:
synthesis.pt
mapping.pt
shape_predictor_68_face_landmarks.dat
from face-depixelizer.
Awesome! I'll look into those options.
Thank you. :)
from face-depixelizer.
Hi!
Following the ideas of @Acurisu, I have managed to make it work when this error happens. I had to change a few iles of code in my colab session but it is straightforward.
-
Execute the code, it will downloading all necessary files into the colab session, and the quota exceeded error appears.
-
Download the weights of the network manually from this link. This is the first link that appears in the error message.
-
Once you have the weights (a file called synthesis.pt), put it in the folder of the colab filesystem called pulse.
-
In the file PULSE.py, change the following lines of code:
# Lines to delete (or comment):
with open_url("https://drive.google.com/uc?id=1TCViX1YpQyRsklTVYEJwdbmK91vklCo8", cache_dir=cache_dir, verbose=verbose) as f:
self.synthesis.load_state_dict(torch.load(f))
# Lines to add:
with open("/content/pulse/synthesis.pt", "rb") as f:
self.synthesis.load_state_dict(torch.load(f))
- Upload your photo, either by using the upload button, or by uploading the photo manually into the folder pulse/input/. The name of the image should be face.png.
It worked for me following those steps, I hope it helps!
from face-depixelizer.
Related Issues (20)
- Could not find a face that downscales correctly within epsilon HOT 3
- Documentation and code for training HOT 1
- OSError: Google Drive quota exceeded HOT 2
- keep getting this error HOT 2
- Add strings to use custom own user's GoogleDrive to manipulate with images
- Max stack call exceeded
- When input cannot be processed, it just displays last output HOT 1
- Could not find a face that downscales correctly within epsilon HOT 1
- Pulse on video HOT 3
- keep getting the error name "toPIL" is not defined
- train your own dataset
- TypeError: google.colab._files is undefined HOT 4
- Error after pressing "let's rock!"
- RuntimeError when uploading image HOT 2
- Ethical considerations HOT 15
- Doesn't work – confusing instructions HOT 4
- Always get "Could not find a face that downscales correctly within epsilon" HOT 4
- OSError: Google Drive quota exceeded HOT 3
- HTTPError: 403
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 face-depixelizer.