Giter Club home page Giter Club logo

Comments (9)

laomaup avatar laomaup commented on July 20, 2024

thank you for sharing, i have a problem.
ModuleNotFoundError: No module named 'psnr' when running test.py.

from enlightengan.

yifanjiang19 avatar yifanjiang19 commented on July 20, 2024

I will open source other guidelines soon, please wait a few days.

from enlightengan.

yifanjiang19 avatar yifanjiang19 commented on July 20, 2024

@TerryYiDa @laomaup
Hi, I have uploaded the specific command. Please contact me if you have other questions.

from enlightengan.

UtopiaHu avatar UtopiaHu commented on July 20, 2024

@yueruchen Thank you for your work. I couldn't find the requirements.txt file.
By the way, where is the supplementary materials mentioned in your paper ?

from enlightengan.

yifanjiang19 avatar yifanjiang19 commented on July 20, 2024

@UtopiaHu
Sorry, I add it now.

from enlightengan.

laomaup avatar laomaup commented on July 20, 2024

i am runningTesting process, python scipts/script.py --predict
this is the problem:
CustomDatasetDataLoader
Traceback (most recent call last):
File "predict.py", line 16, in
data_loader = CreateDataLoader(opt)
File "/data/mypycode/EnlightenGAN-master/data/data_loader.py", line 6, in CreateDataLoader
data_loader.initialize(opt)
File "/data/mypycode/EnlightenGAN-master/data/custom_dataset_data_loader.py", line 39, in initialize
self.dataset = CreateDataset(opt)
File "/data/mypycode/EnlightenGAN-master/data/custom_dataset_data_loader.py", line 11, in CreateDataset
from data.unaligned_dataset import UnalignedDataset
File "/data/mypycode/EnlightenGAN-master/data/unaligned_dataset.py", line 4, in
import torchvision.transforms as transforms
File "/home/xianjin/.conda/envs/allpose/lib/python3.6/site-packages/torchvision/init.py", line 1, in
from torchvision import models
File "/home/xianjin/.conda/envs/allpose/lib/python3.6/site-packages/torchvision/models/init.py", line 10, in
from . import segmentation
File "/home/xianjin/.conda/envs/allpose/lib/python3.6/site-packages/torchvision/models/segmentation/init.py", line 1, in
from .segmentation import *
File "/home/xianjin/.conda/envs/allpose/lib/python3.6/site-packages/torchvision/models/segmentation/segmentation.py", line 1, in
from .._utils import IntermediateLayerGetter
File "/home/xianjin/.conda/envs/allpose/lib/python3.6/site-packages/torchvision/models/_utils.py", line 7, in
class IntermediateLayerGetter(nn.ModuleDict):
AttributeError: module 'torch.nn' has no attribute 'ModuleDict'

Can you provide a more detailed file to tell us how to use it? thank you

from enlightengan.

laomaup avatar laomaup commented on July 20, 2024

Hi, i have a new problem when i try to train.
CustomDatasetDataLoader
dataset [UnalignedDataset] was created
single
Traceback (most recent call last):
File "predict.py", line 18, in
model = create_model(opt)
File "/data/disk2/EnlightenGAN-master/models/models.py", line 36, in create_model
model.initialize(opt)
File "/data/disk2/EnlightenGAN-master/models/single_model.py", line 72, in initialize
self.load_network(self.netG_A, 'G_A', which_epoch)
File "/data/disk2/EnlightenGAN-master/models/base_model.py", line 53, in load_network
network.load_state_dict(torch.load(save_path))
File "/home/xianjin/anaconda3/envs/enlighten/lib/python3.6/site-packages/torch/serialization.py", line 382, in load
f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: './checkpoints/enlightening/200_net_G_A.pth'

where can i find checkpoints and the files.

from enlightengan.

yifanjiang19 avatar yifanjiang19 commented on July 20, 2024

@laomaup This is the pretrained model, you should first train the model and get it.
I will upload the pretrained model soon.

from enlightengan.

yifanjiang19 avatar yifanjiang19 commented on July 20, 2024

@TerryYiDa @laomaup @UtopiaHu
I've uploaded the pre-trained model and environment requirement, follow the guideline you should get the expected results. Feel free to contact me if you have other questions.

from enlightengan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.