Comments (11)
Are you running it from the right directory?
git clone https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life.git
cd Bringing-Old-Photos-Back-to-Life
python3 -m venv .venv
source .venv/bin/activate
cd Face_Enhancement/models/networks/
git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch
cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm .
cd ../../../
cd Global/detection_models
git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch
cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm .
cd ../../
cd Face_Detection/
wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
bzip2 -d shape_predictor_68_face_landmarks.dat.bz2
cd ../
cd Face_Enhancement/
wget https://facevc.blob.core.windows.net/zhanbo/old_photo/pretrain/Face_Enhancement/checkpoints.zip
unzip checkpoints.zip
cd ../
cd Global/
wget https://facevc.blob.core.windows.net/zhanbo/old_photo/pretrain/Global/checkpoints.zip
unzip checkpoints.zip
cd ../
#try pip3 if below doesnt work
pip install -r requirements.txt
#try python3 if below doesnt work
python run.py --input_folder [test_image_folder_path] \
--output_folder [output_path] \
--GPU 0
from bringing-old-photos-back-to-life.
try use --GPU -1
from bringing-old-photos-back-to-life.
i get the exact same error. Im running python 2.7.x even when I just type "python import torch" i get the same error.
from bringing-old-photos-back-to-life.
i changed to python3 and it works now. ull have to change some hardcoded python to python3.
from bringing-old-photos-back-to-life.
torch should be added to the requirements.txt file to resolve this issue
from bringing-old-photos-back-to-life.
Had to:
pip install torchvision
and make that missing restored_image directory.
from bringing-old-photos-back-to-life.
I have tried
pip install torchvision
and even with it installing successfully it still didn't work. I was only able to get it to work by using a virtual env.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
from bringing-old-photos-back-to-life.
Traceback (most recent call last):
File "test.py", line 9, in <module>
from Global.options.test_options import TestOptions
ModuleNotFoundError: No module named 'Global'
I fixed all libs and modules, when we imported it's, but I get this error again and again.
Before, I'm download project – install and it's not work
What am I doing wrong?
P.s. All packeges were installed to the project venv.
from bringing-old-photos-back-to-life.
Of course 😊
This is my dir where the project is located.
At the screen you can see, that I fixed path of libraries, because I thinked, that it wiil help. Also I imported modules at the next format .options.test_options import TestOptions
and this doesn't work
All libs were installed to the venv of this project.
from bringing-old-photos-back-to-life.
Has the problem been solved? Could you tell me how to solve the same problem I have
from bringing-old-photos-back-to-life.
We've fixed the issue. Please have a try.
from bringing-old-photos-back-to-life.
Related Issues (20)
- MemoryError
- 代码里好多错误,pix2pixHD_model_DA.py里面的netE是什么了?
- how can I use my own model
- 很多很多问题,应该是没有再维护了
- 尝试从google.protobuf.internal模块导入名为'builder'的子模块时出现了问题
- Not working (conda with env) HOT 5
- Not working HOT 2
- Out of memory error
- : unrecognized arguments HOT 1
- Deprecated dependencies detected
- refined dockerfile HOT 2
- How can I use the GPU on the macbook(m1) ?
- No errors, but output images are blank/white
- IndexError: list index out of range (model on replicate.com) HOT 2
- cast error - line 219 in align_warp_back_multiple_dlib.py, using Python 3.10.12 HOT 1
- GUI warns it has gone commercial and a licence will be required
- Dlib dir
- Global and Face_Enhancement weights: Public access is not permitted on this storage account. HOT 1
- "Restore the photos with scratches" section fails with **"FileNotFoundError: [Errno 2] No such file or directory: '/content/photo_restoration/Global/checkpoints/detection/FT_Epoch_latest.pt'"** HOT 1
- 这个项目目前无法使用了 HOT 1
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 bringing-old-photos-back-to-life.